Uses of Interface
net.minecraft.network.protocol.common.custom.CustomPacketPayload
Packages that use CustomPacketPayload
Package
Description
- 
Uses of CustomPacketPayload in net.minecraft.client.multiplayerMethods in net.minecraft.client.multiplayer with parameters of type CustomPacketPayloadModifier and TypeMethodDescriptionprotected abstract voidClientCommonPacketListenerImpl.handleCustomPayload(ClientboundCustomPayloadPacket p_295727_, CustomPacketPayload p_295776_) protected voidClientConfigurationPacketListenerImpl.handleCustomPayload(ClientboundCustomPayloadPacket p_295727_, CustomPacketPayload p_295411_) voidClientPacketListener.handleCustomPayload(ClientboundCustomPayloadPacket p_295727_, CustomPacketPayload p_295851_) private voidClientConfigurationPacketListenerImpl.handleUnknownCustomPayload(CustomPacketPayload p_296412_) private voidClientPacketListener.handleUnknownCustomPayload(CustomPacketPayload p_294389_) 
- 
Uses of CustomPacketPayload in net.minecraft.network.protocol.commonFields in net.minecraft.network.protocol.common declared as CustomPacketPayloadModifier and TypeFieldDescriptionprivate final CustomPacketPayloadClientboundCustomPayloadPacket.payloadThe field for thepayloadrecord component.private final CustomPacketPayloadServerboundCustomPayloadPacket.payloadThe field for thepayloadrecord component.Fields in net.minecraft.network.protocol.common with type parameters of type CustomPacketPayloadModifier and TypeFieldDescriptionstatic final Map<ResourceLocation,FriendlyByteBuf.Reader<? extends CustomPacketPayload>> ClientboundCustomPayloadPacket.KNOWN_TYPESstatic final Map<ResourceLocation,FriendlyByteBuf.Reader<? extends CustomPacketPayload>> ServerboundCustomPayloadPacket.KNOWN_TYPESMethods in net.minecraft.network.protocol.common that return CustomPacketPayloadModifier and TypeMethodDescriptionClientboundCustomPayloadPacket.payload()Returns the value of thepayloadrecord component.ServerboundCustomPayloadPacket.payload()Returns the value of thepayloadrecord component.private static CustomPacketPayloadClientboundCustomPayloadPacket.readPayload(ResourceLocation p_294802_, FriendlyByteBuf p_294886_) Deprecated.private static CustomPacketPayloadClientboundCustomPayloadPacket.readPayload(ResourceLocation p_294367_, FriendlyByteBuf p_294321_, io.netty.channel.ChannelHandlerContext context, ConnectionProtocol protocol) Reads the payload from the given buffer.private static CustomPacketPayloadServerboundCustomPayloadPacket.readPayload(ResourceLocation p_294367_, FriendlyByteBuf p_294321_) Deprecated.UseServerboundCustomPayloadPacket.readPayload(ResourceLocation, FriendlyByteBuf, io.netty.channel.ChannelHandlerContext, net.minecraft.network.ConnectionProtocol)instead, as this variant can only read vanilla payloads.private static CustomPacketPayloadServerboundCustomPayloadPacket.readPayload(ResourceLocation p_294367_, FriendlyByteBuf p_294321_, io.netty.channel.ChannelHandlerContext context, ConnectionProtocol protocol) Reads the payload from the given buffer.Constructors in net.minecraft.network.protocol.common with parameters of type CustomPacketPayloadModifierConstructorDescriptionCreates an instance of aClientboundCustomPayloadPacketrecord class.Creates an instance of aServerboundCustomPayloadPacketrecord class.
- 
Uses of CustomPacketPayload in net.minecraft.network.protocol.common.customClasses in net.minecraft.network.protocol.common.custom that implement CustomPacketPayloadModifier and TypeClassDescriptionfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal recordfinal record
- 
Uses of CustomPacketPayload in net.minecraft.network.protocol.gameMethods in net.minecraft.network.protocol.game with parameters of type CustomPacketPayloadModifier and TypeMethodDescriptionprivate static voidDebugPackets.sendPacketToAllPlayers(ServerLevel p_133692_, CustomPacketPayload p_296119_) 
- 
Uses of CustomPacketPayload in net.neoforged.neoforge.commonMethod parameters in net.neoforged.neoforge.common with type arguments of type CustomPacketPayloadModifier and TypeMethodDescriptionstatic voidTierSortingRegistry.sync(ServerConfigurationPacketListener listener, Consumer<CustomPacketPayload> sender) 
- 
Uses of CustomPacketPayload in net.neoforged.neoforge.common.extensionsMethods in net.neoforged.neoforge.common.extensions with parameters of type CustomPacketPayloadModifier and TypeMethodDescriptiondefault voidIPlayerListExtension.broadcast(double x, double y, double z, double range, ResourceKey<Level> level, CustomPacketPayload payload) Sends a payload to all players within the specific level, within a given range around the target pointdefault voidIPlayerListExtension.broadcast(Player excludedPlayer, double x, double y, double z, double range, ResourceKey<Level> level, CustomPacketPayload payload) Sends a payload to all players within the specific level, within a given range around the target point, excluding the specified player.default voidIServerChunkCacheExtension.broadcast(Entity entity, CustomPacketPayload payload) Sends a payload to all players watching the given entity.default voidIPlayerListExtension.broadcastAll(CustomPacketPayload payload) Sends a payload to all players on the serverdefault voidIPlayerListExtension.broadcastAll(CustomPacketPayload payload, ResourceKey<Level> targetLevel) Sends a payload to all players within the specific level.default voidIServerChunkCacheExtension.broadcastAndSend(Entity entity, CustomPacketPayload payload) Sends a payload to all players watching the given entity.default booleanIClientCommonPacketListenerExtension.isConnected(CustomPacketPayload payload) Returns true if the custom payload is usable by this connection.default booleanIServerCommonPacketListenerExtension.isConnected(CustomPacketPayload payload) Returns true if the custom payload is usable by this connection.default voidIClientCommonPacketListenerExtension.send(CustomPacketPayload payload) Sends a custom payload to the server.default voidIServerCommonPacketListenerExtension.send(CustomPacketPayload packetPayload) Sends a custom payload to the client which this listener is attached to.default voidIServerCommonPacketListenerExtension.send(CustomPacketPayload packetPayload, PacketSendListener listener) Sends a custom payload to the client which this listener is attached to.default voidIServerGamePacketListenerExtension.sendBundled(CustomPacketPayload... payloads) Sends all given payloads as a bundle to the client.Method parameters in net.neoforged.neoforge.common.extensions with type arguments of type CustomPacketPayloadModifier and TypeMethodDescriptiondefault voidIServerGamePacketListenerExtension.sendBundled(Iterable<CustomPacketPayload> payloads) Sends all given payloads as a bundle to the client.default voidIEntityExtension.sendPairingData(ServerPlayer serverPlayer, Consumer<CustomPacketPayload> bundleBuilder) Sends the pairing data to the client.
- 
Uses of CustomPacketPayload in net.neoforged.neoforge.debug.entityClasses in net.neoforged.neoforge.debug.entity that implement CustomPacketPayloadMethod parameters in net.neoforged.neoforge.debug.entity with type arguments of type CustomPacketPayloadModifier and TypeMethodDescriptionvoidEntityTests.AdaptedSpawnEntity.sendPairingData(ServerPlayer serverPlayer, Consumer<CustomPacketPayload> bundleBuilder) 
- 
Uses of CustomPacketPayload in net.neoforged.neoforge.networkMethods in net.neoforged.neoforge.network with parameters of type CustomPacketPayloadModifier and TypeMethodDescriptionvoidPacketDistributor.PacketTarget.send(CustomPacketPayload... payloads) 
- 
Uses of CustomPacketPayload in net.neoforged.neoforge.network.bundleMethods in net.neoforged.neoforge.network.bundle with parameters of type CustomPacketPayload
- 
Uses of CustomPacketPayload in net.neoforged.neoforge.network.configurationMethod parameters in net.neoforged.neoforge.network.configuration with type arguments of type CustomPacketPayloadModifier and TypeMethodDescriptionvoidICustomConfigurationTask.run(Consumer<CustomPacketPayload> sender) Invoked when it is time for this configuration to run.voidModdedConfigurationPhaseCompleted.run(Consumer<CustomPacketPayload> sender) voidModdedConfigurationPhaseStarted.run(Consumer<CustomPacketPayload> sender) voidRegistryDataMapNegotiation.run(Consumer<CustomPacketPayload> sender) voidSyncConfig.run(Consumer<CustomPacketPayload> sender) voidSyncRegistries.run(Consumer<CustomPacketPayload> sender) voidSyncTierSortingRegistry.run(Consumer<CustomPacketPayload> sender) 
- 
Uses of CustomPacketPayload in net.neoforged.neoforge.network.handlingClasses in net.neoforged.neoforge.network.handling with type parameters of type CustomPacketPayloadModifier and TypeInterfaceDescriptioninterfaceIConfigurationPayloadHandler<T extends CustomPacketPayload>Callback for handling custom packets.interfaceIPayloadHandler<T extends CustomPacketPayload>Callback for handling custom packets.interfaceIPlayPayloadHandler<T extends CustomPacketPayload>Callback for handling custom packets.Methods in net.neoforged.neoforge.network.handling with type parameters of type CustomPacketPayloadModifier and TypeMethodDescriptionstatic <Z extends CustomPacketPayload>
 IConfigurationPayloadHandler<Z>IConfigurationPayloadHandler.noop()Creates a replyHandler that does nothing.static <Z extends CustomPacketPayload>
 IPlayPayloadHandler<Z>IPlayPayloadHandler.noop()Creates a replyHandler that does nothing.Methods in net.neoforged.neoforge.network.handling with parameters of type CustomPacketPayloadModifier and TypeMethodDescriptionvoidIPacketHandler.handle(CustomPacketPayload payload) Invoked to handle the given custom payload.voidIReplyHandler.send(CustomPacketPayload payload) Sends the given payload back to the player.
- 
Uses of CustomPacketPayload in net.neoforged.neoforge.network.payloadClasses in net.neoforged.neoforge.network.payload that implement CustomPacketPayloadModifier and TypeClassDescriptionfinal recordPayload that can be sent from the server to the client to add an entity to the world, with custom data.final recordA custom payload that updates the full dataslot value instead of just the short valuefinal recordA custom payload that allows for opening screens with additional data.final recordfinal recordA payload that contains a config file.final recordPacket payload for sending a frozen registry to the clientfinal recordThis payload is sent to the client when the server has finished sending all the frozen registries.final recordPacket payload sent to the client to start the frozen registry sync.final recordfinal recordfinal recordA payload that contains the modded network configuration and play components.final recordPayload for the modded network query requestfinal recordPayload sent to the client when the server has failed to set up the modded network.final recordfinal recordA payload that is used to split a packet into multiple payloads.final recordThe payload for the tier sorting registry packet.final recordThis payload is sent by the server to the client when the tier sorting registry has been fully synced.Fields in net.neoforged.neoforge.network.payload with type parameters of type CustomPacketPayloadModifier and TypeFieldDescriptionstatic final FriendlyByteBuf.Reader<? extends CustomPacketPayload>ModdedNetworkPayload.READERstatic final FriendlyByteBuf.Reader<? extends CustomPacketPayload>ModdedNetworkQueryPayload.READERstatic final FriendlyByteBuf.Reader<? extends CustomPacketPayload>ModdedNetworkSetupFailedPayload.READER
- 
Uses of CustomPacketPayload in net.neoforged.neoforge.network.registrationClasses in net.neoforged.neoforge.network.registration with type parameters of type CustomPacketPayloadModifier and TypeClassDescriptionfinal classConfigurationPayloadHandler<T extends CustomPacketPayload>An internal implementation ofIDirectionAwarePayloadHandlerBuilderforIConfigurationPayloadHandler.(package private) static classInternal builder for a configuration payload handler.final recordConfigurationRegistration<T extends CustomPacketPayload>A record that holds the information needed to describe a registered configuration payload, its reader and handler.interfaceIDirectionAwarePayloadHandlerBuilder<P extends CustomPacketPayload,T> Defines a builder for a direction aware payload handler.final recordRegistration for a custom packet payload.final recordModdedPlayPayloadRegistration<T extends CustomPacketPayload>Registration for a custom packet payload.(package private) classPayloadHandlerBuilder<T extends CustomPacketPayload>The internal implementation ofIDirectionAwarePayloadHandlerBuilder, for use byIPayloadRegistrar.common(ResourceLocation, FriendlyByteBuf.Reader, Consumer)(package private) final classPlayPayloadHandler<T extends CustomPacketPayload>An internal implementation ofIDirectionAwarePayloadHandlerBuilderforIPlayPayloadHandler.(package private) static classPlayPayloadHandler.Builder<T extends CustomPacketPayload>A builder forPlayPayloadHandler.final recordPlayRegistration<T extends CustomPacketPayload>A record that holds the information needed to describe a registered play payload, its reader and handler.Methods in net.neoforged.neoforge.network.registration with type parameters of type CustomPacketPayloadModifier and TypeMethodDescription<T extends CustomPacketPayload>
 IPayloadRegistrarIPayloadRegistrar.common(ResourceLocation id, FriendlyByteBuf.Reader<T> reader, Consumer<IDirectionAwarePayloadHandlerBuilder<T, IPayloadHandler<T>>> handler) Registers a new payload type for all supported phases.default <T extends CustomPacketPayload>
 IPayloadRegistrarIPayloadRegistrar.common(ResourceLocation id, FriendlyByteBuf.Reader<T> reader, IPayloadHandler<T> handler) Registers a new payload type for all supported phases.<T extends CustomPacketPayload>
 IPayloadRegistrarModdedPacketRegistrar.common(ResourceLocation id, FriendlyByteBuf.Reader<T> reader, Consumer<IDirectionAwarePayloadHandlerBuilder<T, IPayloadHandler<T>>> handler) <T extends CustomPacketPayload>
 IPayloadRegistrarIPayloadRegistrar.configuration(ResourceLocation id, FriendlyByteBuf.Reader<T> reader, Consumer<IDirectionAwarePayloadHandlerBuilder<T, IConfigurationPayloadHandler<T>>> handler) Registers a new payload type for the configuration phase.<T extends CustomPacketPayload>
 IPayloadRegistrarIPayloadRegistrar.configuration(ResourceLocation id, FriendlyByteBuf.Reader<T> reader, IConfigurationPayloadHandler<T> handler) Registers a new payload type for the configuration phase.<T extends CustomPacketPayload>
 IPayloadRegistrarModdedPacketRegistrar.configuration(ResourceLocation id, FriendlyByteBuf.Reader<T> reader, Consumer<IDirectionAwarePayloadHandlerBuilder<T, IConfigurationPayloadHandler<T>>> handler) <T extends CustomPacketPayload>
 IPayloadRegistrarModdedPacketRegistrar.configuration(ResourceLocation id, FriendlyByteBuf.Reader<T> reader, IConfigurationPayloadHandler<T> handler) <T extends CustomPacketPayload>
 IPayloadRegistrarIPayloadRegistrar.play(ResourceLocation id, FriendlyByteBuf.Reader<T> reader, Consumer<IDirectionAwarePayloadHandlerBuilder<T, IPlayPayloadHandler<T>>> handler) Registers a new payload type for the play phase.<T extends CustomPacketPayload>
 IPayloadRegistrarIPayloadRegistrar.play(ResourceLocation id, FriendlyByteBuf.Reader<T> reader, IPlayPayloadHandler<T> handler) Registers a new payload type for the play phase.<T extends CustomPacketPayload>
 IPayloadRegistrarModdedPacketRegistrar.play(ResourceLocation id, FriendlyByteBuf.Reader<T> reader, Consumer<IDirectionAwarePayloadHandlerBuilder<T, IPlayPayloadHandler<T>>> handler) <T extends CustomPacketPayload>
 IPayloadRegistrarModdedPacketRegistrar.play(ResourceLocation id, FriendlyByteBuf.Reader<T> reader, IPlayPayloadHandler<T> handler) Methods in net.neoforged.neoforge.network.registration that return CustomPacketPayloadModifier and TypeMethodDescriptionConfigurationRegistration.apply(FriendlyByteBuf buffer) PlayRegistration.apply(FriendlyByteBuf buffer) Methods in net.neoforged.neoforge.network.registration that return types with arguments of type CustomPacketPayloadModifier and TypeMethodDescriptionFriendlyByteBuf.Reader<? extends CustomPacketPayload>NetworkRegistry.getReader(ResourceLocation id, io.netty.channel.ChannelHandlerContext context, ConnectionProtocol protocol, Map<ResourceLocation, FriendlyByteBuf.Reader<? extends CustomPacketPayload>> knownTypes) Invoked by the network subsystem to get a reader for a custom packet payload.Methods in net.neoforged.neoforge.network.registration with parameters of type CustomPacketPayloadModifier and TypeMethodDescriptionvoidConfigurationRegistration.handle(CustomPacketPayload payload, ConfigurationPayloadContext context) voidNetworkRegistry.ClientPacketHandler.handle(CustomPacketPayload payload) voidNetworkRegistry.ServerPacketHandler.handle(CustomPacketPayload payload) voidPlayRegistration.handle(CustomPacketPayload payload, PlayPayloadContext context) Method parameters in net.neoforged.neoforge.network.registration with type arguments of type CustomPacketPayloadModifier and TypeMethodDescriptionFriendlyByteBuf.Reader<? extends CustomPacketPayload>NetworkRegistry.getReader(ResourceLocation id, io.netty.channel.ChannelHandlerContext context, ConnectionProtocol protocol, Map<ResourceLocation, FriendlyByteBuf.Reader<? extends CustomPacketPayload>> knownTypes) Invoked by the network subsystem to get a reader for a custom packet payload.
- 
Uses of CustomPacketPayload in net.neoforged.neoforge.oldtest.miscClasses in net.neoforged.neoforge.oldtest.misc that implement CustomPacketPayload
- 
Uses of CustomPacketPayload in net.neoforged.testframework.gametestMethods in net.neoforged.testframework.gametest with type parameters of type CustomPacketPayloadModifier and TypeMethodDescription<T extends CustomPacketPayload>
 Stream<T>GameTestPlayer.getOutboundPayloads(Class<T> type) 
- 
Uses of CustomPacketPayload in net.neoforged.testframework.impl.packetClasses in net.neoforged.testframework.impl.packet that implement CustomPacketPayloadModifier and TypeClassDescriptionfinal recordfinal record
ClientboundCustomPayloadPacket.readPayload(ResourceLocation, FriendlyByteBuf, io.netty.channel.ChannelHandlerContext, net.minecraft.network.ConnectionProtocol)instead, as this variant can only read vanilla payloads.