markDirty calls
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package storagecraft.tile;
|
||||
|
||||
import storagecraft.tile.settings.ICompareSetting;
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.item.ItemBlock;
|
||||
@@ -8,6 +7,7 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.BlockPos;
|
||||
import storagecraft.inventory.InventorySimple;
|
||||
import storagecraft.tile.settings.ICompareSetting;
|
||||
import storagecraft.util.InventoryUtils;
|
||||
|
||||
public class TileConstructor extends TileMachine implements ICompareSetting
|
||||
|
@@ -1,6 +1,5 @@
|
||||
package storagecraft.tile;
|
||||
|
||||
import storagecraft.tile.settings.ICompareSetting;
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.item.ItemStack;
|
||||
@@ -8,6 +7,7 @@ import net.minecraft.nbt.NBTTagCompound;
|
||||
import storagecraft.StorageCraftBlocks;
|
||||
import storagecraft.inventory.InventorySimple;
|
||||
import storagecraft.storage.StorageItem;
|
||||
import storagecraft.tile.settings.ICompareSetting;
|
||||
import storagecraft.util.InventoryUtils;
|
||||
|
||||
public class TileDetector extends TileMachine implements ICompareSetting
|
||||
@@ -149,6 +149,8 @@ public class TileDetector extends TileMachine implements ICompareSetting
|
||||
|
||||
public void setAmount(int amount)
|
||||
{
|
||||
markDirty();
|
||||
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
|
@@ -49,6 +49,8 @@ public class TileDrive extends TileMachine implements IInventory, IStorageProvid
|
||||
|
||||
public void setPriority(int priority)
|
||||
{
|
||||
markDirty();
|
||||
|
||||
this.priority = priority;
|
||||
}
|
||||
|
||||
|
@@ -208,6 +208,8 @@ public class TileExternalStorage extends TileMachine implements IStorageProvider
|
||||
@Override
|
||||
public void setCompare(int compare)
|
||||
{
|
||||
markDirty();
|
||||
|
||||
this.compare = compare;
|
||||
}
|
||||
|
||||
@@ -226,12 +228,16 @@ public class TileExternalStorage extends TileMachine implements IStorageProvider
|
||||
@Override
|
||||
public void setToWhitelist()
|
||||
{
|
||||
markDirty();
|
||||
|
||||
this.mode = 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setToBlacklist()
|
||||
{
|
||||
markDirty();
|
||||
|
||||
this.mode = 1;
|
||||
}
|
||||
|
||||
@@ -243,6 +249,8 @@ public class TileExternalStorage extends TileMachine implements IStorageProvider
|
||||
|
||||
public void setPriority(int priority)
|
||||
{
|
||||
markDirty();
|
||||
|
||||
this.priority = priority;
|
||||
}
|
||||
|
||||
|
@@ -105,6 +105,8 @@ public class TileGrid extends TileMachine
|
||||
|
||||
public void setSortingDirection(int sortingDirection)
|
||||
{
|
||||
markDirty();
|
||||
|
||||
this.sortingDirection = sortingDirection;
|
||||
}
|
||||
|
||||
@@ -115,6 +117,8 @@ public class TileGrid extends TileMachine
|
||||
|
||||
public void setSortingType(int sortingType)
|
||||
{
|
||||
markDirty();
|
||||
|
||||
this.sortingType = sortingType;
|
||||
}
|
||||
|
||||
|
@@ -1,7 +1,5 @@
|
||||
package storagecraft.tile;
|
||||
|
||||
import storagecraft.tile.settings.IModeSetting;
|
||||
import storagecraft.tile.settings.ICompareSetting;
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.inventory.ISidedInventory;
|
||||
@@ -9,6 +7,8 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import storagecraft.inventory.InventorySimple;
|
||||
import storagecraft.tile.settings.ICompareSetting;
|
||||
import storagecraft.tile.settings.IModeSetting;
|
||||
import storagecraft.util.InventoryUtils;
|
||||
|
||||
public class TileImporter extends TileMachine implements ICompareSetting, IModeSetting
|
||||
@@ -147,12 +147,16 @@ public class TileImporter extends TileMachine implements ICompareSetting, IModeS
|
||||
@Override
|
||||
public void setToWhitelist()
|
||||
{
|
||||
markDirty();
|
||||
|
||||
this.mode = 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setToBlacklist()
|
||||
{
|
||||
markDirty();
|
||||
|
||||
this.mode = 1;
|
||||
}
|
||||
|
||||
|
@@ -21,7 +21,9 @@ public class TileSolderer extends TileMachine implements IInventory, ISidedInven
|
||||
public static final String NBT_PROGRESS = "Progress";
|
||||
|
||||
private InventorySimple inventory = new InventorySimple("solderer", 4);
|
||||
|
||||
private ISoldererRecipe recipe;
|
||||
|
||||
private boolean working = false;
|
||||
private int progress = 0;
|
||||
@SideOnly(Side.CLIENT)
|
||||
|
@@ -207,6 +207,8 @@ public class TileStorage extends TileMachine implements IStorageProvider, IStora
|
||||
@Override
|
||||
public void setCompare(int compare)
|
||||
{
|
||||
markDirty();
|
||||
|
||||
this.compare = compare;
|
||||
}
|
||||
|
||||
@@ -225,12 +227,16 @@ public class TileStorage extends TileMachine implements IStorageProvider, IStora
|
||||
@Override
|
||||
public void setToWhitelist()
|
||||
{
|
||||
markDirty();
|
||||
|
||||
this.mode = 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setToBlacklist()
|
||||
{
|
||||
markDirty();
|
||||
|
||||
this.mode = 1;
|
||||
}
|
||||
|
||||
@@ -290,6 +296,8 @@ public class TileStorage extends TileMachine implements IStorageProvider, IStora
|
||||
|
||||
public void setStorageTag(NBTTagCompound tag)
|
||||
{
|
||||
markDirty();
|
||||
|
||||
this.tag = tag;
|
||||
}
|
||||
|
||||
@@ -301,6 +309,8 @@ public class TileStorage extends TileMachine implements IStorageProvider, IStora
|
||||
|
||||
public void setPriority(int priority)
|
||||
{
|
||||
markDirty();
|
||||
|
||||
this.priority = priority;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user