(NBTTagCompound aNBT, String aKey)
| 68 | } |
| 69 | |
| 70 | public NBTTagCompound writeToNBT(NBTTagCompound aNBT, String aKey) { |
| 71 | if (mFluid != null && (mPreventDraining || mAmount > 0)) { |
| 72 | NBTTagCompound tNBT = UT.NBT.make(); |
| 73 | mFluid.amount = UT.Code.bindInt(mAmount); |
| 74 | aNBT.setTag(aKey, mFluid.writeToNBT(tNBT)); |
| 75 | if (mAmount > Integer.MAX_VALUE) tNBT.setLong("LAmount", mAmount); |
| 76 | } else { |
| 77 | aNBT.removeTag(aKey); |
| 78 | } |
| 79 | return aNBT; |
| 80 | } |
| 81 | |
| 82 | public NBTTagCompound writeToNBT(String aKey) { |
| 83 | NBTTagCompound aNBT = UT.NBT.make(); |