예제 #1
0
 @Override
 public void writeToNBT(NBTTagCompound nbt) {
   // System.out.printf("SGRingTE.writeToNBT\n");
   super.writeToNBT(nbt);
   nbt.setBoolean("isMerged", isMerged);
   nbt.setInteger("baseX", baseX);
   nbt.setInteger("baseY", baseY);
   nbt.setInteger("baseZ", baseZ);
 }
예제 #2
0
 @Override
 public void readFromNBT(NBTTagCompound nbt) {
   // System.out.printf("SGRingTE.readFromNBT\n");
   super.readFromNBT(nbt);
   isMerged = nbt.getBoolean("isMerged");
   baseX = nbt.getInteger("baseX");
   baseY = nbt.getInteger("baseY");
   baseZ = nbt.getInteger("baseZ");
 }