Inventory, WAILA and item state done.

This commit is contained in:
CrazyPants committed 2014-12-04 14:23:23 +08:00
1 parent 0a41647899
commit d1c9895494
32 files changed
+1082 -302

No files matched your search

@@ -540,7 +540,7 @@ public abstract class AbstractMachineEntity extends TileEntityEio implements ISi
float storedEnergyMJ = nbtRoot.getFloat("storedEnergy");
energy = (int)(storedEnergyMJ * 10);
} else {
energy = nbtRoot.getInteger("storedEnergyRF");
energy = nbtRoot.getInteger(PowerHandlerUtil.STORED_ENERGY_NBT_KEY);
}
setEnergyStored(energy);
@@ -600,7 +600,7 @@ public abstract class AbstractMachineEntity extends TileEntityEio implements ISi
* Write state common to both block and item
*/
public void writeCommon(NBTTagCompound nbtRoot) {
nbtRoot.setInteger("storedEnergyRF", storedEnergyRF);
nbtRoot.setInteger(PowerHandlerUtil.STORED_ENERGY_NBT_KEY, storedEnergyRF);
nbtRoot.setShort("capacitorType", (short) capacitorType.ordinal());
// write inventory list