use of net.minecraft.nbt.INBT in project BluePower by Qmunity.
the class TileBlulectricCable method writeToPacketNBT.
@Override
protected void writeToPacketNBT(CompoundNBT tCompound) {
super.writeToPacketNBT(tCompound);
INBT nbtstorage = CapabilityBlutricity.BLUTRICITY_CAPABILITY.getStorage().writeNBT(CapabilityBlutricity.BLUTRICITY_CAPABILITY, storage, null);
tCompound.put("energy", nbtstorage);
}
use of net.minecraft.nbt.INBT in project BluePower by Qmunity.
the class TileSolarPanel method writeToPacketNBT.
@Override
protected void writeToPacketNBT(CompoundNBT tCompound) {
super.writeToPacketNBT(tCompound);
INBT nbtstorage = CapabilityBlutricity.BLUTRICITY_CAPABILITY.getStorage().writeNBT(CapabilityBlutricity.BLUTRICITY_CAPABILITY, storage, null);
tCompound.put("energy", nbtstorage);
}
use of net.minecraft.nbt.INBT in project BluePower by Qmunity.
the class TileThermopile method writeToPacketNBT.
@Override
protected void writeToPacketNBT(CompoundNBT tCompound) {
super.writeToPacketNBT(tCompound);
INBT nbtstorage = CapabilityBlutricity.BLUTRICITY_CAPABILITY.getStorage().writeNBT(CapabilityBlutricity.BLUTRICITY_CAPABILITY, storage, null);
tCompound.put("energy", nbtstorage);
}
use of net.minecraft.nbt.INBT in project BluePower by Qmunity.
the class TileBlulectricFurnace method writeToPacketNBT.
@Override
public void writeToPacketNBT(CompoundNBT tag) {
super.writeToPacketNBT(tag);
tag.putInt("currentProcessTime", currentProcessTime);
tag.putBoolean("isActive", isActive);
INBT nbtstorage = CapabilityBlutricity.BLUTRICITY_CAPABILITY.getStorage().writeNBT(CapabilityBlutricity.BLUTRICITY_CAPABILITY, storage, null);
tag.put("energy", nbtstorage);
}
Aggregations