Uses of Interface
net.neoforged.neoforge.network.handling.IPayloadHandler
Packages that use IPayloadHandler
Package
Description
-
Uses of IPayloadHandler in net.neoforged.neoforge.network
Methods in net.neoforged.neoforge.network that return IPayloadHandlerModifier and TypeMethodDescriptionprivate static <T extends ClientDispatchPayload>
IPayloadHandler<T> NetworkInitialization.clientHandler() -
Uses of IPayloadHandler in net.neoforged.neoforge.network.handling
Classes in net.neoforged.neoforge.network.handling that implement IPayloadHandlerModifier and TypeClassDescriptionfinal recordDirectionalPayloadHandler<T extends CustomPacketPayload>Helper class that merges two unidirectional handlers into a single bidirectional handler.final recordMainThreadPayloadHandler<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.clientSideThe field for theclientSiderecord component.private final IPayloadHandler<T> MainThreadPayloadHandler.handlerThe field for thehandlerrecord component.private final IPayloadHandler<T> DirectionalPayloadHandler.serverSideThe field for theserverSiderecord component.Methods in net.neoforged.neoforge.network.handling that return IPayloadHandlerModifier and TypeMethodDescriptionDirectionalPayloadHandler.clientSide()Returns the value of theclientSiderecord component.MainThreadPayloadHandler.handler()Returns the value of thehandlerrecord component.DirectionalPayloadHandler.serverSide()Returns the value of theserverSiderecord component.Constructors in net.neoforged.neoforge.network.handling with parameters of type IPayloadHandlerModifierConstructorDescriptionDirectionalPayloadHandler(IPayloadHandler<T> clientSide, IPayloadHandler<T> serverSide) Creates an instance of aDirectionalPayloadHandlerrecord class.MainThreadPayloadHandler(IPayloadHandler<T> handler) Creates an instance of aMainThreadPayloadHandlerrecord 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.handlerThe field for thehandlerrecord component.private final IPayloadHandler<T> ModdedPlayPayloadRegistration.handlerThe field for thehandlerrecord component.private final IPayloadHandler<T> PayloadRegistration.handlerThe field for thehandlerrecord component.Methods in net.neoforged.neoforge.network.registration that return IPayloadHandlerModifier and TypeMethodDescriptionModdedConfigurationPayloadRegistration.handler()Returns the value of thehandlerrecord component.ModdedPlayPayloadRegistration.handler()Returns the value of thehandlerrecord component.PayloadRegistration.handler()Returns the value of thehandlerrecord 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 aModdedConfigurationPayloadRegistrationrecord class.ModdedPlayPayloadRegistration(ResourceLocation id, Class<T> type, IPayloadHandler<T> handler, StreamCodec<RegistryFriendlyByteBuf, T> reader) Creates an instance of aModdedPlayPayloadRegistrationrecord 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 aPayloadRegistrationrecord class.