Saves a FluidStack properly.
(NBTTagCompound aNBT, String aTagName, FluidStack aFluid)
| 1057 | |
| 1058 | /** Saves a FluidStack properly. */ |
| 1059 | public static NBTTagCompound save(NBTTagCompound aNBT, String aTagName, FluidStack aFluid) { |
| 1060 | if (aNBT == null) aNBT = NBT.make(); |
| 1061 | NBTTagCompound tNBT = save(aFluid); |
| 1062 | if (tNBT != null) aNBT.setTag(aTagName, tNBT); |
| 1063 | return aNBT; |
| 1064 | } |
| 1065 | /** Saves a FluidStack properly. */ |
| 1066 | public static NBTTagCompound save (FluidStack aFluid) {return aFluid == null || aFluid.getFluid() == null ? null : save_(aFluid);} |
| 1067 | /** Saves a FluidStack properly. */ |
no test coverage detected