toPacket

abstract Packet<? extends ObjecttoPacket(Identifier id, PacketByteBuf buf)

Turn a (identifier, byte buffer) pair into a "custom payload" packetsuitable for sending in the PacketRegistry's sending direction.

Return

Parameters

id

The identifier.

buf

The byte buffer.

Sources

jvm source
Link copied to clipboard