@Override public void handlePacketData(ByteBuf dataStream) { super.handlePacketData(dataStream); finishedCalc = dataStream.readBoolean(); if (dataStream.readInt() == 1) { fluidTank.setFluid(new FluidStack(dataStream.readInt(), dataStream.readInt())); } else { fluidTank.setFluid(null); } MekanismUtils.updateBlock(worldObj, xCoord, yCoord, zCoord); }
@Override public void setFluidStack(FluidStack fluidStack, Object... data) { fluidTank.setFluid(fluidStack); }