Uses of Class
net.minecraftforge.fml.network.NetworkEvent.Context
-
Packages that use NetworkEvent.Context Package Description net.minecraftforge.fml.config net.minecraftforge.fml.network net.minecraftforge.fml.network.simple -
-
Uses of NetworkEvent.Context in net.minecraftforge.fml.config
Method parameters in net.minecraftforge.fml.config with type arguments of type NetworkEvent.Context Modifier and Type Method Description void
ConfigTracker. receiveSyncedConfig(FMLHandshakeMessages.S2CConfigData s2CConfigData, java.util.function.Supplier<NetworkEvent.Context> contextSupplier)
-
Uses of NetworkEvent.Context in net.minecraftforge.fml.network
Fields in net.minecraftforge.fml.network with type parameters of type NetworkEvent.Context Modifier and Type Field Description private java.util.function.BiFunction<ICustomPacket<?>,java.util.function.Supplier<NetworkEvent.Context>,NetworkEvent>
NetworkDirection. eventSupplier
private java.util.function.Supplier<NetworkEvent.Context>
NetworkEvent. source
Methods in net.minecraftforge.fml.network that return types with arguments of type NetworkEvent.Context Modifier and Type Method Description static <MSG extends java.util.function.IntSupplier>
java.util.function.BiConsumer<MSG,java.util.function.Supplier<NetworkEvent.Context>>FMLHandshakeHandler. biConsumerFor(ThreeConsumer<FMLHandshakeHandler,? super MSG,? super java.util.function.Supplier<NetworkEvent.Context>> consumer)
Transforms a two-argument instance method reference into aBiConsumer
based on theFMLHandshakeHandler.getHandshake(Supplier)
function.java.util.function.Supplier<NetworkEvent.Context>
NetworkEvent. getSource()
static <MSG extends java.util.function.IntSupplier>
java.util.function.BiConsumer<MSG,java.util.function.Supplier<NetworkEvent.Context>>FMLHandshakeHandler. indexFirst(ThreeConsumer<FMLHandshakeHandler,MSG,java.util.function.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.Method parameters in net.minecraftforge.fml.network with type arguments of type NetworkEvent.Context Modifier and Type Method Description static <MSG extends java.util.function.IntSupplier>
java.util.function.BiConsumer<MSG,java.util.function.Supplier<NetworkEvent.Context>>FMLHandshakeHandler. biConsumerFor(ThreeConsumer<FMLHandshakeHandler,? super MSG,? super java.util.function.Supplier<NetworkEvent.Context>> consumer)
Transforms a two-argument instance method reference into aBiConsumer
based on theFMLHandshakeHandler.getHandshake(Supplier)
function.NetworkEvent
NetworkDirection. getEvent(ICustomPacket<?> buffer, java.util.function.Supplier<NetworkEvent.Context> manager)
private static FMLHandshakeHandler
FMLHandshakeHandler. getHandshake(java.util.function.Supplier<NetworkEvent.Context> contextSupplier)
Retrieve the handshake from theNetworkEvent.Context
static void
FMLPlayMessages.OpenContainer. handle(FMLPlayMessages.OpenContainer msg, java.util.function.Supplier<NetworkEvent.Context> ctx)
static void
FMLPlayMessages.SpawnEntity. handle(FMLPlayMessages.SpawnEntity msg, java.util.function.Supplier<NetworkEvent.Context> ctx)
static void
FMLPlayMessages.SyncCustomTagTypes. handle(FMLPlayMessages.SyncCustomTagTypes msg, java.util.function.Supplier<NetworkEvent.Context> ctx)
(package private) void
FMLHandshakeHandler. handleClientAck(FMLHandshakeMessages.C2SAcknowledge msg, java.util.function.Supplier<NetworkEvent.Context> contextSupplier)
(package private) void
FMLHandshakeHandler. handleClientModListOnServer(FMLHandshakeMessages.C2SModListReply clientModList, java.util.function.Supplier<NetworkEvent.Context> c)
(package private) void
FMLHandshakeHandler. handleConfigSync(FMLHandshakeMessages.S2CConfigData msg, java.util.function.Supplier<NetworkEvent.Context> contextSupplier)
(package private) <MSG extends java.util.function.IntSupplier>
voidFMLHandshakeHandler. handleIndexedMessage(MSG message, java.util.function.Supplier<NetworkEvent.Context> c)
private boolean
FMLHandshakeHandler. handleRegistryLoading(java.util.function.Supplier<NetworkEvent.Context> contextSupplier)
(package private) void
FMLHandshakeHandler. handleRegistryMessage(FMLHandshakeMessages.S2CRegistry registryPacket, java.util.function.Supplier<NetworkEvent.Context> contextSupplier)
(package private) void
FMLHandshakeHandler. handleServerModListOnClient(FMLHandshakeMessages.S2CModList serverModList, java.util.function.Supplier<NetworkEvent.Context> c)
static <MSG extends java.util.function.IntSupplier>
java.util.function.BiConsumer<MSG,java.util.function.Supplier<NetworkEvent.Context>>FMLHandshakeHandler. indexFirst(ThreeConsumer<FMLHandshakeHandler,MSG,java.util.function.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(java.util.function.Supplier<NetworkEvent.Context> source, PacketBuffer buffer, NetworkEvent.RegistrationChangeType changeType)
Constructor parameters in net.minecraftforge.fml.network with type arguments of type NetworkEvent.Context Constructor Description ChannelRegistrationChangeEvent(java.util.function.Supplier<NetworkEvent.Context> source, NetworkEvent.RegistrationChangeType changeType)
ClientCustomPayloadEvent(ICustomPacket<?> payload, java.util.function.Supplier<NetworkEvent.Context> source)
ClientCustomPayloadLoginEvent(ICustomPacket<?> payload, java.util.function.Supplier<NetworkEvent.Context> source)
LoginPayloadEvent(PacketBuffer payload, java.util.function.Supplier<NetworkEvent.Context> source, int loginIndex)
NetworkDirection(java.util.function.BiFunction<ICustomPacket<?>,java.util.function.Supplier<NetworkEvent.Context>,NetworkEvent> eventSupplier, LogicalSide logicalSide, java.lang.Class<? extends IPacket> clazz, int i)
NetworkEvent(java.util.function.Supplier<NetworkEvent.Context> source)
NetworkEvent(PacketBuffer payload, java.util.function.Supplier<NetworkEvent.Context> source, int loginIndex)
NetworkEvent(ICustomPacket<?> payload, java.util.function.Supplier<NetworkEvent.Context> source)
ServerCustomPayloadEvent(ICustomPacket<?> payload, java.util.function.Supplier<NetworkEvent.Context> source)
ServerCustomPayloadLoginEvent(ICustomPacket<?> payload, java.util.function.Supplier<NetworkEvent.Context> source)
-
Uses of NetworkEvent.Context in net.minecraftforge.fml.network.simple
Fields in net.minecraftforge.fml.network.simple with type parameters of type NetworkEvent.Context Modifier and Type Field Description private java.util.function.BiConsumer<MSG,java.util.function.Supplier<NetworkEvent.Context>>
SimpleChannel.MessageBuilder. consumer
private java.util.function.BiConsumer<MSG,java.util.function.Supplier<NetworkEvent.Context>>
IndexedMessageCodec.MessageHandler. messageConsumer
Methods in net.minecraftforge.fml.network.simple with parameters of type NetworkEvent.Context Modifier and Type Method Description <MSG> void
SimpleChannel. reply(MSG msgToReply, NetworkEvent.Context context)
Method parameters in net.minecraftforge.fml.network.simple with type arguments of type NetworkEvent.Context Modifier and Type Method Description (package private) void
IndexedMessageCodec. consume(PacketBuffer payload, int payloadIndex, java.util.function.Supplier<NetworkEvent.Context> context)
SimpleChannel.MessageBuilder<MSG>
SimpleChannel.MessageBuilder. consumer(java.util.function.BiConsumer<MSG,java.util.function.Supplier<NetworkEvent.Context>> consumer)
SimpleChannel.MessageBuilder<MSG>
SimpleChannel.MessageBuilder. consumer(SimpleChannel.MessageBuilder.ToBooleanBiFunction<MSG,java.util.function.Supplier<NetworkEvent.Context>> handler)
Function returning a boolean "packet handled" indication, for simpler channel building.private static <M> void
IndexedMessageCodec. tryDecode(PacketBuffer payload, java.util.function.Supplier<NetworkEvent.Context> context, int payloadIndex, IndexedMessageCodec.MessageHandler<M> codec)
-