Search in sources :

Example 11 with INBT

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);
}
Also used : INBT(net.minecraft.nbt.INBT)

Example 12 with INBT

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);
}
Also used : INBT(net.minecraft.nbt.INBT)

Example 13 with INBT

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);
}
Also used : INBT(net.minecraft.nbt.INBT)

Example 14 with INBT

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);
}
Also used : INBT(net.minecraft.nbt.INBT)

Aggregations

INBT (net.minecraft.nbt.INBT)14