mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-20 04:09:43 +00:00
Inventory, WAILA and item state done.
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user