netlibPayload

@ExperimentalSerializationApi
fun <T : SerializedPayload<T>> PayloadRegistrar.netlibPayload(config: SerializedPayloadConfiguration<T>, handler: IPayloadHandler<T>): PayloadRegistrar(source)

Used to register SerializedPayloads with NeoForge's networking during net.neoforged.neoforge.network.event.RegisterPayloadHandlersEvent

See NeoForge Networking Documentation