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
|
@ -23,9 +23,9 @@ public class TileAltar extends TileInventory implements IBloodAltar, ITickable,
|
|||
}
|
||||
|
||||
@Override
|
||||
public void readFromNBT(NBTTagCompound tagCompound)
|
||||
public void deserialize(NBTTagCompound tagCompound)
|
||||
{
|
||||
super.readFromNBT(tagCompound);
|
||||
super.deserialize(tagCompound);
|
||||
|
||||
NBTTagCompound altarTag = tagCompound.getCompoundTag("bloodAltar");
|
||||
|
||||
|
@ -33,9 +33,9 @@ public class TileAltar extends TileInventory implements IBloodAltar, ITickable,
|
|||
}
|
||||
|
||||
@Override
|
||||
public NBTTagCompound writeToNBT(NBTTagCompound tagCompound)
|
||||
public NBTTagCompound serialize(NBTTagCompound tagCompound)
|
||||
{
|
||||
super.writeToNBT(tagCompound);
|
||||
super.serialize(tagCompound);
|
||||
|
||||
NBTTagCompound altarTag = new NBTTagCompound();
|
||||
this.bloodAltar.writeToNBT(altarTag);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue