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

Method toBytes

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

Source from the content-addressed store, hash-verified

47 }
48
49 @Override
50 public void toBytes(ByteBuf buf) {
51 buf.writeInt(windowId);
52 buf.writeInt(widgetId);
53 buf.writeShort(payload.readableBytes());
54 buf.writeBytes(payload);
55 }
56
57 public enum Handler implements IMessageHandler<MessageWidget, MessageWidget> {
58 INSTANCE;

Callers

nothing calls this directly

Calls 3

writeIntMethod · 0.45
writeShortMethod · 0.45
writeBytesMethod · 0.45

Tested by

no test coverage detected