Uses of Class
net.minecraftforge.fml.network.NetworkEvent.Context
Package
Description
-
Uses of NetworkEvent.Context in net.minecraftforge.fml.config
Modifier and TypeMethodDescriptionvoid
ConfigTracker.receiveSyncedConfig
(FMLHandshakeMessages.S2CConfigData s2CConfigData, Supplier<NetworkEvent.Context> contextSupplier) -
Uses of NetworkEvent.Context in net.minecraftforge.fml.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>> FMLHandshakeHandler.biConsumerFor
(ThreeConsumer<FMLHandshakeHandler, ? super MSG, ? super Supplier<NetworkEvent.Context>> consumer) Transforms a two-argument instance method reference into aBiConsumer
based on theFMLHandshakeHandler.getHandshake(Supplier)
function.NetworkEvent.getSource()
static <MSG extends IntSupplier>
BiConsumer<MSG,Supplier<NetworkEvent.Context>> FMLHandshakeHandler.indexFirst
(ThreeConsumer<FMLHandshakeHandler, MSG, Supplier<NetworkEvent.Context>> next) Transforms a two-argument instance method reference into aBiConsumer
FMLHandshakeHandler.biConsumerFor(ThreeConsumer)
, first calling the#handleIndexedMessage(FMLHandshakeMessages.LoginIndexedMessage, Supplier)
method to handle index tracking.Modifier and TypeMethodDescriptionstatic <MSG extends IntSupplier>
BiConsumer<MSG,Supplier<NetworkEvent.Context>> FMLHandshakeHandler.biConsumerFor
(ThreeConsumer<FMLHandshakeHandler, ? super MSG, ? super Supplier<NetworkEvent.Context>> consumer) Transforms a two-argument instance method reference into aBiConsumer
based on theFMLHandshakeHandler.getHandshake(Supplier)
function.NetworkDirection.getEvent
(ICustomPacket<?> buffer, Supplier<NetworkEvent.Context> manager) private static FMLHandshakeHandler
FMLHandshakeHandler.getHandshake
(Supplier<NetworkEvent.Context> contextSupplier) Retrieve the handshake from theNetworkEvent.Context
static void
FMLPlayMessages.OpenContainer.handle
(FMLPlayMessages.OpenContainer msg, Supplier<NetworkEvent.Context> ctx) static void
FMLPlayMessages.SpawnEntity.handle
(FMLPlayMessages.SpawnEntity msg, Supplier<NetworkEvent.Context> ctx) static void
FMLPlayMessages.SyncCustomTagTypes.handle
(FMLPlayMessages.SyncCustomTagTypes msg, Supplier<NetworkEvent.Context> ctx) (package private) void
FMLHandshakeHandler.handleClientAck
(FMLHandshakeMessages.C2SAcknowledge msg, Supplier<NetworkEvent.Context> contextSupplier) (package private) void
FMLHandshakeHandler.handleClientModListOnServer
(FMLHandshakeMessages.C2SModListReply clientModList, Supplier<NetworkEvent.Context> c) (package private) void
FMLHandshakeHandler.handleConfigSync
(FMLHandshakeMessages.S2CConfigData msg, Supplier<NetworkEvent.Context> contextSupplier) (package private) <MSG extends IntSupplier>
voidFMLHandshakeHandler.handleIndexedMessage
(MSG message, Supplier<NetworkEvent.Context> c) private boolean
FMLHandshakeHandler.handleRegistryLoading
(Supplier<NetworkEvent.Context> contextSupplier) (package private) void
FMLHandshakeHandler.handleRegistryMessage
(FMLHandshakeMessages.S2CRegistry registryPacket, Supplier<NetworkEvent.Context> contextSupplier) (package private) void
FMLHandshakeHandler.handleServerModListOnClient
(FMLHandshakeMessages.S2CModList serverModList, Supplier<NetworkEvent.Context> c) static <MSG extends IntSupplier>
BiConsumer<MSG,Supplier<NetworkEvent.Context>> FMLHandshakeHandler.indexFirst
(ThreeConsumer<FMLHandshakeHandler, MSG, Supplier<NetworkEvent.Context>> next) Transforms a two-argument instance method reference into aBiConsumer
FMLHandshakeHandler.biConsumerFor(ThreeConsumer)
, first calling the#handleIndexedMessage(FMLHandshakeMessages.LoginIndexedMessage, Supplier)
method to handle index tracking.void
FMLMCRegisterPacketHandler.ChannelList.updateFrom
(Supplier<NetworkEvent.Context> source, PacketBuffer 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
(PacketBuffer payload, Supplier<NetworkEvent.Context> source, int loginIndex) private
NetworkDirection
(BiFunction<ICustomPacket<?>, Supplier<NetworkEvent.Context>, NetworkEvent> eventSupplier, LogicalSide logicalSide, Class<? extends IPacket> clazz, int i) NetworkEvent
(Supplier<NetworkEvent.Context> source) private
NetworkEvent
(PacketBuffer 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.fml.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
(PacketBuffer 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
(PacketBuffer payload, Supplier<NetworkEvent.Context> context, int payloadIndex, IndexedMessageCodec.MessageHandler<M> codec)