Esempio n. 1
0
 @Override
 public void writeRestorableToNBT(NBTTagCompound tagCompound) {
   super.writeRestorableToNBT(tagCompound);
   writeBufferToNBT(tagCompound);
   tagCompound.setBoolean("large", large);
   tagCompound.setBoolean("transparent", transparent);
   tagCompound.setInteger("color", color);
 }
 @Override
 public void writeRestorableToNBT(NBTTagCompound tagCompound) {
   super.writeRestorableToNBT(tagCompound);
   tagCompound.setFloat("strength", strength);
   tagCompound.setFloat("power", power);
   tagCompound.setFloat("efficiency", efficiency);
   tagCompound.setFloat("purity", purity);
   tagCompound.setBoolean("glowing", glowing);
   tagCompound.setByte("version", (byte) 2); // Legacy support to support older crystals.
 }
Esempio n. 3
0
 @Override
 public void writeRestorableToNBT(NBTTagCompound tagCompound) {
   super.writeRestorableToNBT(tagCompound);
   tagCompound.setInteger("counter", counter);
   tagCompound.setInteger("current", current);
 }