Пример #1
0
 /** Writes a tile entity to NBT. */
 @Override
 public void writeToNBT(NBTTagCompound NBT) {
   super.writeToNBT(NBT);
   NBT.setInteger("liquidLevel", liquidLevel);
   NBT.setInteger("liquid", liquidID);
 }
Пример #2
0
 /** Reads a tile entity from NBT. */
 @Override
 public void readFromNBT(NBTTagCompound NBT) {
   super.readFromNBT(NBT);
   liquidLevel = NBT.getInteger("liquidLevel");
   liquidID = NBT.getInteger("liquid");
 }