FabricRemoteRegistration

class FabricRemoteRegistration : Record, CustomPacketPayload(source)

Outbound-only native channel advertisement, separate from any installed Fabric networking registry.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val TYPE: CustomPacketPayload.Type<FabricRemoteRegistration>

Functions

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
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
abstract fun toString(): String
Link copied to clipboard
@NotNull
open fun type(): @NotNull CustomPacketPayload.Type<FabricRemoteRegistration>
Link copied to clipboard
open fun write(buffer: FriendlyByteBuf)
Encodes the complete native payload, including its standard identifier prefix.