Uses of Interface
net.neoforged.neoforge.network.handling.IPayloadHandler
Packages that use IPayloadHandler
Package
Description
-
Uses of IPayloadHandler in net.neoforged.neoforge.network.handling
Classes in net.neoforged.neoforge.network.handling that implement IPayloadHandlerModifier and TypeClassDescriptionfinal record
DirectionalPayloadHandler<T extends CustomPacketPayload>
Helper class that merges two unidirectional handlers into a single bidirectional handler.final record
MainThreadPayloadHandler<T extends CustomPacketPayload>
Helper class that always executes the wrapped handler on the main thread.Fields in net.neoforged.neoforge.network.handling declared as IPayloadHandlerModifier and TypeFieldDescriptionprivate final IPayloadHandler
<T> DirectionalPayloadHandler.clientSide
The field for theclientSide
record component.private final IPayloadHandler
<T> MainThreadPayloadHandler.handler
The field for thehandler
record component.private final IPayloadHandler
<T> DirectionalPayloadHandler.serverSide
The field for theserverSide
record component.Methods in net.neoforged.neoforge.network.handling that return IPayloadHandlerModifier and TypeMethodDescriptionDirectionalPayloadHandler.clientSide()
Returns the value of theclientSide
record component.MainThreadPayloadHandler.handler()
Returns the value of thehandler
record component.DirectionalPayloadHandler.serverSide()
Returns the value of theserverSide
record component.Constructors in net.neoforged.neoforge.network.handling with parameters of type IPayloadHandlerModifierConstructorDescriptionDirectionalPayloadHandler
(IPayloadHandler<T> clientSide, IPayloadHandler<T> serverSide) Creates an instance of aDirectionalPayloadHandler
record class.MainThreadPayloadHandler
(IPayloadHandler<T> handler) Creates an instance of aMainThreadPayloadHandler
record class. -
Uses of IPayloadHandler in net.neoforged.neoforge.network.registration
Fields in net.neoforged.neoforge.network.registration declared as IPayloadHandlerModifier and TypeFieldDescriptionprivate final IPayloadHandler
<T> ModdedConfigurationPayloadRegistration.handler
The field for thehandler
record component.private final IPayloadHandler
<T> ModdedPlayPayloadRegistration.handler
The field for thehandler
record component.private final IPayloadHandler
<T> PayloadRegistration.handler
The field for thehandler
record component.Methods in net.neoforged.neoforge.network.registration that return IPayloadHandlerModifier and TypeMethodDescriptionModdedConfigurationPayloadRegistration.handler()
Returns the value of thehandler
record component.ModdedPlayPayloadRegistration.handler()
Returns the value of thehandler
record component.PayloadRegistration.handler()
Returns the value of thehandler
record component.Methods in net.neoforged.neoforge.network.registration with parameters of type IPayloadHandlerModifier and TypeMethodDescription<T extends CustomPacketPayload>
PayloadRegistrarPayloadRegistrar.commonBidirectional
(CustomPacketPayload.Type<T> type, StreamCodec<? super FriendlyByteBuf, T> reader, IPayloadHandler<T> handler) Registers a bidirectional payload for all phases.<T extends CustomPacketPayload>
PayloadRegistrarPayloadRegistrar.commonToClient
(CustomPacketPayload.Type<T> type, StreamCodec<? super FriendlyByteBuf, T> reader, IPayloadHandler<T> handler) Registers a client-bound payload for all phases.<T extends CustomPacketPayload>
PayloadRegistrarPayloadRegistrar.commonToServer
(CustomPacketPayload.Type<T> type, StreamCodec<? super FriendlyByteBuf, T> reader, IPayloadHandler<T> handler) Registers a server-bound payload for all phases.<T extends CustomPacketPayload>
PayloadRegistrarPayloadRegistrar.configurationBidirectional
(CustomPacketPayload.Type<T> type, StreamCodec<? super FriendlyByteBuf, T> reader, IPayloadHandler<T> handler) Registers a bidirectional payload for the configuration phase.<T extends CustomPacketPayload>
PayloadRegistrarPayloadRegistrar.configurationToClient
(CustomPacketPayload.Type<T> type, StreamCodec<? super FriendlyByteBuf, T> reader, IPayloadHandler<T> handler) Registers a client-bound payload for the configuration phase.<T extends CustomPacketPayload>
PayloadRegistrarPayloadRegistrar.configurationToServer
(CustomPacketPayload.Type<T> type, StreamCodec<? super FriendlyByteBuf, T> reader, IPayloadHandler<T> handler) Registers a server-bound payload for the configuration phase.<T extends CustomPacketPayload>
PayloadRegistrarPayloadRegistrar.playBidirectional
(CustomPacketPayload.Type<T> type, StreamCodec<? super RegistryFriendlyByteBuf, T> reader, IPayloadHandler<T> handler) Registers a bidirectional payload for the play phase.<T extends CustomPacketPayload>
PayloadRegistrarPayloadRegistrar.playToClient
(CustomPacketPayload.Type<T> type, StreamCodec<? super RegistryFriendlyByteBuf, T> reader, IPayloadHandler<T> handler) Registers a client-bound payload for the play phase.<T extends CustomPacketPayload>
PayloadRegistrarPayloadRegistrar.playToServer
(CustomPacketPayload.Type<T> type, StreamCodec<? super RegistryFriendlyByteBuf, T> reader, IPayloadHandler<T> handler) Registers a server-bound payload for the play phase.static <T extends CustomPacketPayload,
B extends FriendlyByteBuf>
voidNetworkRegistry.register
(CustomPacketPayload.Type<T> type, StreamCodec<? super B, T> codec, IPayloadHandler<T> handler, List<ConnectionProtocol> protocols, Optional<PacketFlow> flow, String version, boolean optional) Registers a new payload.private <T extends CustomPacketPayload,
B extends FriendlyByteBuf>
voidPayloadRegistrar.register
(CustomPacketPayload.Type<T> type, StreamCodec<? super B, T> codec, IPayloadHandler<T> handler, List<ConnectionProtocol> protocols, Optional<PacketFlow> flow, String version, boolean optional) Constructors in net.neoforged.neoforge.network.registration with parameters of type IPayloadHandlerModifierConstructorDescriptionModdedConfigurationPayloadRegistration
(ResourceLocation id, Class<T> type, IPayloadHandler<T> handler, StreamCodec<FriendlyByteBuf, T> reader) Creates an instance of aModdedConfigurationPayloadRegistration
record class.ModdedPlayPayloadRegistration
(ResourceLocation id, Class<T> type, IPayloadHandler<T> handler, StreamCodec<RegistryFriendlyByteBuf, T> reader) Creates an instance of aModdedPlayPayloadRegistration
record class.PayloadRegistration
(CustomPacketPayload.Type<T> type, StreamCodec<? super RegistryFriendlyByteBuf, T> codec, IPayloadHandler<T> handler, List<ConnectionProtocol> protocols, Optional<PacketFlow> flow, String version, boolean optional) Creates an instance of aPayloadRegistration
record class. -
Uses of IPayloadHandler in net.neoforged.neoforge.oldtest.misc
Classes in net.neoforged.neoforge.oldtest.misc that implement IPayloadHandlerModifier and TypeClassDescriptionclass
This test mod provides a way to register aCustomPacketPayload
with a different protocol version on the client and the server to cause a mod channel mismatch.