Uses of Class
net.minecraftforge.network.NetworkEvent.Context
Package
Description
-
Uses of NetworkEvent.Context in net.minecraftforge.common
Modifier and TypeMethodDescriptionprivate static void
TierSortingRegistry.handle
(TierSortingRegistry.SyncPacket packet, Supplier<NetworkEvent.Context> context) -
Uses of NetworkEvent.Context in net.minecraftforge.network
Modifier and TypeFieldDescriptionprivate final BiFunction<ICustomPacket<?>,
Supplier<NetworkEvent.Context>, NetworkEvent> NetworkDirection.eventSupplier
private final Supplier<NetworkEvent.Context>
NetworkEvent.source
Modifier and TypeMethodDescriptionstatic <MSG extends IntSupplier>
BiConsumer<MSG,Supplier<NetworkEvent.Context>> HandshakeHandler.biConsumerFor
(HandshakeHandler.HandshakeConsumer<MSG> consumer) Transforms a two-argument instance method reference into aBiConsumer
based on theHandshakeHandler.getHandshake(Supplier)
function.NetworkEvent.getSource()
static <MSG extends IntSupplier>
BiConsumer<MSG,Supplier<NetworkEvent.Context>> HandshakeHandler.indexFirst
(HandshakeHandler.HandshakeConsumer<MSG> next) Transforms a two-argument instance method reference into aBiConsumer
HandshakeHandler.biConsumerFor(HandshakeConsumer)
, first calling theHandshakeHandler.handleIndexedMessage(IntSupplier, Supplier)
method to handle index tracking.Modifier and TypeMethodDescriptionvoid
HandshakeHandler.HandshakeConsumer.accept
(HandshakeHandler handler, MSG msg, Supplier<NetworkEvent.Context> context) NetworkDirection.getEvent
(ICustomPacket<?> buffer, Supplier<NetworkEvent.Context> manager) private static HandshakeHandler
HandshakeHandler.getHandshake
(Supplier<NetworkEvent.Context> contextSupplier) Retrieve the handshake from theNetworkEvent.Context
static void
PlayMessages.OpenContainer.handle
(PlayMessages.OpenContainer msg, Supplier<NetworkEvent.Context> ctx) static void
PlayMessages.SpawnEntity.handle
(PlayMessages.SpawnEntity msg, Supplier<NetworkEvent.Context> ctx) (package private) void
HandshakeHandler.handleClientAck
(HandshakeMessages.C2SAcknowledge msg, Supplier<NetworkEvent.Context> contextSupplier) (package private) void
HandshakeHandler.handleClientModListOnServer
(HandshakeMessages.C2SModListReply clientModList, Supplier<NetworkEvent.Context> c) (package private) void
HandshakeHandler.handleConfigSync
(HandshakeMessages.S2CConfigData msg, Supplier<NetworkEvent.Context> contextSupplier) (package private) <MSG extends IntSupplier>
voidHandshakeHandler.handleIndexedMessage
(MSG message, Supplier<NetworkEvent.Context> c) (package private) void
HandshakeHandler.handleModData
(HandshakeMessages.S2CModData serverModData, Supplier<NetworkEvent.Context> c) (package private) void
HandshakeHandler.handleModMismatchData
(HandshakeMessages.S2CChannelMismatchData modMismatchData, Supplier<NetworkEvent.Context> c) private boolean
HandshakeHandler.handleRegistryLoading
(Supplier<NetworkEvent.Context> contextSupplier) (package private) void
HandshakeHandler.handleRegistryMessage
(HandshakeMessages.S2CRegistry registryPacket, Supplier<NetworkEvent.Context> contextSupplier) (package private) void
HandshakeHandler.handleServerModListOnClient
(HandshakeMessages.S2CModList serverModList, Supplier<NetworkEvent.Context> c) void
ConfigSync.receiveSyncedConfig
(HandshakeMessages.S2CConfigData s2CConfigData, Supplier<NetworkEvent.Context> contextSupplier) void
MCRegisterPacketHandler.ChannelList.updateFrom
(Supplier<NetworkEvent.Context> source, FriendlyByteBuf buffer, NetworkEvent.RegistrationChangeType changeType) ModifierConstructorDescription(package private)
ChannelRegistrationChangeEvent
(Supplier<NetworkEvent.Context> source, NetworkEvent.RegistrationChangeType changeType) (package private)
ClientCustomPayloadEvent
(ICustomPacket<?> payload, Supplier<NetworkEvent.Context> source) (package private)
ClientCustomPayloadLoginEvent
(ICustomPacket<?> payload, Supplier<NetworkEvent.Context> source) (package private)
LoginPayloadEvent
(FriendlyByteBuf payload, Supplier<NetworkEvent.Context> source, int loginIndex) private
NetworkDirection
(BiFunction<ICustomPacket<?>, Supplier<NetworkEvent.Context>, NetworkEvent> eventSupplier, LogicalSide logicalSide, Class<? extends Packet> clazz, int i) NetworkEvent
(Supplier<NetworkEvent.Context> source) private
NetworkEvent
(FriendlyByteBuf payload, Supplier<NetworkEvent.Context> source, int loginIndex) private
NetworkEvent
(ICustomPacket<?> payload, Supplier<NetworkEvent.Context> source) (package private)
ServerCustomPayloadEvent
(ICustomPacket<?> payload, Supplier<NetworkEvent.Context> source) (package private)
ServerCustomPayloadLoginEvent
(ICustomPacket<?> payload, Supplier<NetworkEvent.Context> source) -
Uses of NetworkEvent.Context in net.minecraftforge.network.simple
Modifier and TypeFieldDescriptionprivate BiConsumer<MSG,
Supplier<NetworkEvent.Context>> SimpleChannel.MessageBuilder.consumer
private final BiConsumer<MSG,
Supplier<NetworkEvent.Context>> IndexedMessageCodec.MessageHandler.messageConsumer
Modifier and TypeMethodDescription<MSG> void
SimpleChannel.reply
(MSG msgToReply, NetworkEvent.Context context) Modifier and TypeMethodDescription(package private) void
IndexedMessageCodec.consume
(FriendlyByteBuf payload, int payloadIndex, Supplier<NetworkEvent.Context> context) SimpleChannel.MessageBuilder.consumer
(BiConsumer<MSG, Supplier<NetworkEvent.Context>> consumer) SimpleChannel.MessageBuilder.consumer
(SimpleChannel.MessageBuilder.ToBooleanBiFunction<MSG, Supplier<NetworkEvent.Context>> handler) Function returning a boolean "packet handled" indication, for simpler channel building.private static <M> void
IndexedMessageCodec.tryDecode
(FriendlyByteBuf payload, Supplier<NetworkEvent.Context> context, int payloadIndex, IndexedMessageCodec.MessageHandler<M> codec)