MCPcopy Create free account
hub / github.com/BuildCraft/BuildCraft / writeData

Method writeData

common/buildcraft/lib/fluids/TankManager.java:123–135  ·  view source on GitHub ↗
(ByteBuf data)

Source from the content-addressed store, hash-verified

121 }
122
123 public void writeData(ByteBuf data) {
124 PacketBuffer packet = new PacketBuffer(data);
125 for (Tank tank : tanks) {
126 FluidStack fluidStack = tank.getFluid();
127 if (fluidStack != null && fluidStack.getFluid() != null) {
128 packet.writeString(fluidStack.getFluid().getName());
129 packet.writeInt(fluidStack.amount);
130 packet.writeInt(fluidStack.getFluid().getColor(fluidStack));
131 } else {
132 packet.writeString("~");
133 }
134 }
135 }
136
137 @SideOnly(Side.CLIENT)
138 public void readData(ByteBuf data) {

Callers

nothing calls this directly

Calls 4

getFluidMethod · 0.45
getNameMethod · 0.45
writeIntMethod · 0.45
getColorMethod · 0.45

Tested by

no test coverage detected