コード例 #1
0
 @Override
 public void writeRestorableToNBT(NBTTagCompound tagCompound) {
   super.writeRestorableToNBT(tagCompound);
   tagCompound.setInteger("channel", channel);
 }
コード例 #2
0
 @Override
 public void readRestorableFromNBT(NBTTagCompound tagCompound) {
   super.readRestorableFromNBT(tagCompound);
   channel = tagCompound.getInteger("channel");
 }
コード例 #3
0
 @Override
 public void writeToNBT(NBTTagCompound tagCompound) {
   super.writeToNBT(tagCompound);
   Coordinate.writeToNBT(tagCompound, "minCorner", minCorner);
   Coordinate.writeToNBT(tagCompound, "maxCorner", maxCorner);
 }
コード例 #4
0
 @Override
 public void readFromNBT(NBTTagCompound tagCompound) {
   super.readFromNBT(tagCompound);
   minCorner = Coordinate.readFromNBT(tagCompound, "minCorner");
   maxCorner = Coordinate.readFromNBT(tagCompound, "maxCorner");
 }