Uses of Class
net.neoforged.neoforge.network.registration.PayloadRegistrar
Packages that use PayloadRegistrar
Package
Description
-
Uses of PayloadRegistrar in net.neoforged.neoforge.network.event
Methods in net.neoforged.neoforge.network.event that return PayloadRegistrarModifier and TypeMethodDescriptionCreates a newPayloadRegistrar
, a utility for registering payloads using a builder-style format. -
Uses of PayloadRegistrar in net.neoforged.neoforge.network.registration
Methods in net.neoforged.neoforge.network.registration that return PayloadRegistrarModifier and TypeMethodDescription<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
PayloadRegistrarPayloadRegistrar.commonBidirectional
(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.FriendlyByteBuf, T> reader, IPayloadHandler<T> handler) Registers a bidirectional payload for all phases.<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
PayloadRegistrarPayloadRegistrar.commonToClient
(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.FriendlyByteBuf, T> reader, IPayloadHandler<T> handler) Registers a client-bound payload for all phases.<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
PayloadRegistrarPayloadRegistrar.commonToServer
(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.FriendlyByteBuf, T> reader, IPayloadHandler<T> handler) Registers a server-bound payload for all phases.<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
PayloadRegistrarPayloadRegistrar.configurationBidirectional
(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.FriendlyByteBuf, T> reader, IPayloadHandler<T> handler) Registers a bidirectional payload for the configuration phase.<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
PayloadRegistrarPayloadRegistrar.configurationToClient
(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.FriendlyByteBuf, T> reader, IPayloadHandler<T> handler) Registers a client-bound payload for the configuration phase.<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
PayloadRegistrarPayloadRegistrar.configurationToServer
(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.FriendlyByteBuf, T> reader, IPayloadHandler<T> handler) Registers a server-bound payload for the configuration phase.PayloadRegistrar.executesOn
(HandlerThread thread) Creates a copy of this registrar with a different default handling thread.PayloadRegistrar.optional()
Creates a copy of this registrar with optional mode enabled.<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
PayloadRegistrarPayloadRegistrar.playBidirectional
(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf, T> reader, IPayloadHandler<T> handler) Registers a bidirectional payload for the play phase.<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
PayloadRegistrarPayloadRegistrar.playToClient
(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf, T> reader, IPayloadHandler<T> handler) Registers a client-bound payload for the play phase.<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
PayloadRegistrarPayloadRegistrar.playToServer
(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> type, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf, T> reader, IPayloadHandler<T> handler) Registers a server-bound payload for the play phase.Creates a copy of this registrar with a different version.Constructors in net.neoforged.neoforge.network.registration with parameters of type PayloadRegistrar