Uses of Class
net.minecraftforge.event.network.CustomPayloadEvent.Context
Package
Description
-
Uses of CustomPayloadEvent.Context in net.minecraftforge.common
Modifier and TypeMethodDescriptionprivate static void
TierSortingRegistry.handle
(TierSortingRegistry.SyncPacket packet, CustomPayloadEvent.Context context) -
Uses of CustomPayloadEvent.Context in net.minecraftforge.event.network
Modifier and TypeFieldDescriptionprivate final CustomPayloadEvent.Context
CustomPayloadEvent.source
ModifierConstructorDescriptionCustomPayloadEvent
(ResourceLocation channel, FriendlyByteBuf payload, CustomPayloadEvent.Context source, int loginIndex) CustomPayloadEvent
(ICustomPacket<?> payload, CustomPayloadEvent.Context source) -
Uses of CustomPayloadEvent.Context in net.minecraftforge.network
Modifier and TypeFieldDescriptionprivate final BiConsumer<MSG,
CustomPayloadEvent.Context> SimpleChannel.Message.consumer
The field for theconsumer
record component.private BiConsumer<MSG,
CustomPayloadEvent.Context> SimpleChannel.MessageBuilder.consumer
private it.unimi.dsi.fastutil.ints.Int2ObjectMap<BiConsumer<Acknowledge,
CustomPayloadEvent.Context>> ForgePacketHandler.pendingAcknowledgments
Modifier and TypeMethodDescriptionSimpleChannel.Message.consumer()
Returns the value of theconsumer
record component.Modifier and TypeMethodDescriptionprivate static <MSG> void
SimpleChannel.decodeAndDispatch
(FriendlyByteBuf data, CustomPayloadEvent.Context ctx, SimpleChannel.Message<MSG> msg) (package private) void
ForgePacketHandler.handleChannelVersions
(ChannelVersions list, CustomPayloadEvent.Context ctx) (package private) void
ForgePacketHandler.handleClientAck
(Acknowledge msg, CustomPayloadEvent.Context ctx) (package private) void
ForgePacketHandler.handleConfigSync
(ConfigData msg, CustomPayloadEvent.Context ctx) (package private) void
ForgePacketHandler.handleLoginWrapper
(LoginWrapper msg, CustomPayloadEvent.Context ctx) (package private) void
ForgePacketHandler.handleModMismatchData
(MismatchData data, CustomPayloadEvent.Context ctx) (package private) void
ForgePacketHandler.handleModVersions
(ModVersions list, CustomPayloadEvent.Context ctx) (package private) void
ForgePacketHandler.handleRegistryData
(RegistryData msg, CustomPayloadEvent.Context ctx) (package private) void
ForgePacketHandler.handleRegistryList
(RegistryList list, CustomPayloadEvent.Context ctx) private boolean
ForgePacketHandler.handleRegistryLoading
(CustomPayloadEvent.Context ctx) void
Channel.reply
(MSG msg, CustomPayloadEvent.Context context) private static void
ChannelListManager.updateFrom
(CustomPayloadEvent.Context source, FriendlyByteBuf buffer, ChannelRegistrationChangeEvent.Type changeType) Modifier and TypeMethodDescriptionSimpleChannel.MessageBuilder.consumerMainThread
(io.netty.util.AttributeKey<C> key, org.apache.commons.lang3.function.TriConsumer<C, MSG, CustomPayloadEvent.Context> consumer) Set the message consumer, which is called once a message has been decoded.SimpleChannel.MessageBuilder.consumerMainThread
(BiConsumer<MSG, CustomPayloadEvent.Context> consumer) Set the message consumer, which is called once a message has been decoded.SimpleChannel.MessageBuilder.consumerNetworkThread
(io.netty.util.AttributeKey<C> key, SimpleChannel.MessageBuilder.ToBooleanTriFunction<C, MSG, CustomPayloadEvent.Context> handler) Function returning a boolean "packet handled" indication, for simpler channel building.SimpleChannel.MessageBuilder.consumerNetworkThread
(io.netty.util.AttributeKey<C> key, org.apache.commons.lang3.function.TriConsumer<C, MSG, CustomPayloadEvent.Context> consumer) Set the message consumer, which is called once a message has been decoded.SimpleChannel.MessageBuilder.consumerNetworkThread
(BiConsumer<MSG, CustomPayloadEvent.Context> consumer) Set the message consumer, which is called once a message has been decoded.SimpleChannel.MessageBuilder.consumerNetworkThread
(SimpleChannel.MessageBuilder.ToBooleanBiFunction<MSG, CustomPayloadEvent.Context> handler) Function returning a boolean "packet handled" indication, for simpler channel building.int
ForgePacketHandler.expectAck
(BiConsumer<Acknowledge, CustomPayloadEvent.Context> consumer) -
Uses of CustomPayloadEvent.Context in net.minecraftforge.network.packets
Modifier and TypeMethodDescriptionstatic void
OpenContainer.handle
(OpenContainer msg, CustomPayloadEvent.Context ctx) static void
SpawnEntity.handle
(SpawnEntity msg, CustomPayloadEvent.Context ctx) -
Uses of CustomPayloadEvent.Context in net.minecraftforge.network.tasks
Modifier and TypeMethodDescriptionprivate void
SyncRegistriesTask.sendRegistries
(Acknowledge msg, CustomPayloadEvent.Context ctx)