@Override public void writeRestorableToNBT(NBTTagCompound tagCompound) { super.writeRestorableToNBT(tagCompound); tagCompound.setInteger("channel", channel); }
@Override public void readRestorableFromNBT(NBTTagCompound tagCompound) { super.readRestorableFromNBT(tagCompound); channel = tagCompound.getInteger("channel"); }
@Override public void writeToNBT(NBTTagCompound tagCompound) { super.writeToNBT(tagCompound); Coordinate.writeToNBT(tagCompound, "minCorner", minCorner); Coordinate.writeToNBT(tagCompound, "maxCorner", maxCorner); }
@Override public void readFromNBT(NBTTagCompound tagCompound) { super.readFromNBT(tagCompound); minCorner = Coordinate.readFromNBT(tagCompound, "minCorner"); maxCorner = Coordinate.readFromNBT(tagCompound, "maxCorner"); }