NBTBase.writeNamedTag(nbt, data);
}
@Override
public void readData(DataInputStream data) throws IOException {
NBTBase nbt = NBTBase.readNamedTag(data);
if (nbt instanceof NBTTagCompound) {
for (int i = 0; i < fluids.length; ++i) {
NBTTagCompound nbttagcompound = ((NBTTagCompound) nbt).getCompoundTag("fluidStack[" + i + "]");
if (nbttagcompound != null)
fluids[i] = FluidRegistry.getFluid(nbttagcompound.getString("FluidName"));