use of pneumaticCraft.api.tileentity.HeatBehaviour in project PneumaticCraft by MineMaarten.
the class HeatExchangerLogic method writeToNBT.
@Override
public void writeToNBT(NBTTagCompound tag) {
tag.setDouble("temperature", temperature);
NBTTagList tagList = new NBTTagList();
for (HeatBehaviour behaviour : behaviours) {
NBTTagCompound t = new NBTTagCompound();
t.setString("id", behaviour.getId());
behaviour.writeToNBT(t);
tagList.appendTag(t);
}
tag.setTag("behaviours", tagList);
}
Aggregations