Uses of Class
net.minecraftforge.fmllegacy.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.fmllegacy.network
Modifier and TypeFieldDescriptionprivate BiFunction<ICustomPacket<?>,Supplier<NetworkEvent.Context>,NetworkEvent>
NetworkDirection.eventSupplier
private 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 theFMLHandshakeHandler.handleIndexedMessage(IntSupplier, 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)
(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 theFMLHandshakeHandler.handleIndexedMessage(IntSupplier, Supplier)
method to handle index tracking.void
ConfigSync.receiveSyncedConfig(FMLHandshakeMessages.S2CConfigData s2CConfigData, Supplier<NetworkEvent.Context> contextSupplier)
void
FMLMCRegisterPacketHandler.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.fmllegacy.network.simple
Modifier and TypeFieldDescriptionprivate BiConsumer<MSG,Supplier<NetworkEvent.Context>>
SimpleChannel.MessageBuilder.consumer
private 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)