FabricRemotePayload

class FabricRemotePayload : CustomPacketPayload(source)

Bounded opaque plugin-message bytes shared by the modern native 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 CODEC: StreamCodec<FriendlyByteBuf, FabricRemotePayload>
Link copied to clipboard
val TYPE: CustomPacketPayload.Type<FabricRemotePayload>

Functions

Link copied to clipboard
open fun bytes(): Array<Byte>
Returns a detached frame for the receiving adapter's queue.
Link copied to clipboard
open fun <B : ByteBuf?, T : CustomPacketPayload?> codec(writer: StreamMemberEncoder<B, T>, reader: StreamDecoder<B, T>): StreamCodec<B, T>
open fun <B : FriendlyByteBuf?> codec(fallback: CustomPacketPayload.FallbackProvider<B>, types: List<CustomPacketPayload.TypeAndCodec<in B, out Any>>): StreamCodec<B, CustomPacketPayload>
Link copied to clipboard
open fun <T : CustomPacketPayload?> createType(id: String): CustomPacketPayload.Type<T>
Link copied to clipboard
@NotNull
open fun type(): @NotNull CustomPacketPayload.Type<FabricRemotePayload>