@Override
 public void readRestorableFromNBT(NBTTagCompound tagCompound) {
   super.readRestorableFromNBT(tagCompound);
   readBufferFromNBT(tagCompound);
   large = tagCompound.getBoolean("large");
   transparent = tagCompound.getBoolean("transparent");
   color = tagCompound.getInteger("color");
 }
Beispiel #2
0
 @Override
 public void readRestorableFromNBT(NBTTagCompound tagCompound) {
   super.readRestorableFromNBT(tagCompound);
   counter = tagCompound.getInteger("counter");
   if (counter == 0) {
     counter = 1;
   }
   current = tagCompound.getInteger("current");
 }
 @Override
 public void readRestorableFromNBT(NBTTagCompound tagCompound) {
   super.readRestorableFromNBT(tagCompound);
   strength = tagCompound.getFloat("strength");
   power = tagCompound.getFloat("power");
   efficiency = tagCompound.getFloat("efficiency");
   purity = tagCompound.getFloat("purity");
   glowing = tagCompound.getBoolean("glowing");
   byte version = tagCompound.getByte("version");
   if (version < (byte) 2) {
     // We have to convert the power.
     power *= 20.0f;
   }
 }