Clean up TE implementations
Offload some work to base classes that provide some helpers TODO: Implementations for Inventories (using caps) and ticking tiles with inventories.
This commit is contained in:
parent
4d331aa758
commit
798bad5583
23 changed files with 280 additions and 493 deletions
src/main/java/WayofTime/bloodmagic/tile
|
@ -85,9 +85,9 @@ public class TileAlchemyTable extends TileInventory implements ISidedInventory,
|
|||
}
|
||||
|
||||
@Override
|
||||
public void readFromNBT(NBTTagCompound tag)
|
||||
public void deserialize(NBTTagCompound tag)
|
||||
{
|
||||
super.readFromNBT(tag);
|
||||
super.deserialize(tag);
|
||||
|
||||
isSlave = tag.getBoolean("isSlave");
|
||||
direction = EnumFacing.getFront(tag.getInteger(Constants.NBT.DIRECTION));
|
||||
|
@ -105,9 +105,9 @@ public class TileAlchemyTable extends TileInventory implements ISidedInventory,
|
|||
}
|
||||
|
||||
@Override
|
||||
public NBTTagCompound writeToNBT(NBTTagCompound tag)
|
||||
public NBTTagCompound serialize(NBTTagCompound tag)
|
||||
{
|
||||
super.writeToNBT(tag);
|
||||
super.serialize(tag);
|
||||
|
||||
tag.setBoolean("isSlave", isSlave);
|
||||
tag.setInteger(Constants.NBT.DIRECTION, direction.getIndex());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue