FabricRemotePayload

class FabricRemotePayload : CustomPacketPayload(source)

Opaque Strata frame for the native payload protocol preceding stream codecs.

Constructors

Link copied to clipboard
constructor(bytes: Array<Byte>)
Copies a bounded message independently of its caller-owned storage.

Properties

Link copied to clipboard
val ID: ResourceLocation

Functions

Link copied to clipboard
open fun bytes(): Array<Byte>
Returns a detached frame for the receiving adapter's queue.
Link copied to clipboard
@NotNull
open fun id(): @NotNull ResourceLocation
Link copied to clipboard
open fun read(buffer: FriendlyByteBuf): FabricRemotePayload
Copies a bounded native payload before its packet buffer is released.
Link copied to clipboard
open fun write(buffer: FriendlyByteBuf)