コード例 #1
0
 @Override
 public void writeToNBT(NBTTagCompound tagCompound) {
   super.writeToNBT(tagCompound);
   Boolean value = redstoneOut.getValue();
   tagCompound.setBoolean("rs", value == null ? false : value);
   tagCompound.setBoolean("prevIn", prevIn);
 }
コード例 #2
0
 @Override
 public void writeToNBT(NBTTagCompound tagCompound) {
   super.writeToNBT(tagCompound);
   tagCompound.setBoolean("powerOn", powerOn);
   tagCompound.setBoolean("connected", connected);
   tagCompound.setInteger("rfPerTick", totalRfPerTick);
 }
コード例 #3
0
 @Override
 public void writeToNBT(NBTTagCompound tagCompound) {
   super.writeToNBT(tagCompound);
 }