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

Method fromBytes

common/buildcraft/lib/net/MessageWidget.java:40–47  ·  view source on GitHub ↗
(ByteBuf buf)

Source from the content-addressed store, hash-verified

38 // BYTE[size] - PAYLOAD
39
40 @Override
41 public void fromBytes(ByteBuf buf) {
42 windowId = buf.readInt();
43 widgetId = buf.readInt();
44 int payloadSize = buf.readUnsignedShort();
45 ByteBuf read = buf.readBytes(payloadSize);
46 payload = new PacketBuffer(read);
47 }
48
49 @Override
50 public void toBytes(ByteBuf buf) {

Callers

nothing calls this directly

Calls 2

readIntMethod · 0.45
readUnsignedShortMethod · 0.45

Tested by

no test coverage detected