Ejemplo n.º 1
0
 public void writeToNBT(NBTTagCompound nbttagcompound) {
   super.writeToNBT(nbttagcompound);
   nbttagcompound.setShort("heat", heat);
   nbttagcompound.setShort("fuel", (short) fuel);
   nbttagcompound.setShort("fueltype", fueltype);
   nbttagcompound.setShort("energy", energy);
   nbttagcompound.setInteger("bred", bred);
 }
Ejemplo n.º 2
0
 public void readFromNBT(NBTTagCompound nbttagcompound) {
   super.readFromNBT(nbttagcompound);
   fuel = nbttagcompound.getShort("fuel");
   heat = nbttagcompound.getShort("heat");
   energy = nbttagcompound.getShort("energy");
   fueltype = nbttagcompound.getShort("fueltype");
   bred = nbttagcompound.getInteger("bred");
 }