Package | Description |
---|---|
net.minecraftforge.fml.config | |
net.minecraftforge.fml.network | |
net.minecraftforge.fml.network.simple |
Modifier and Type | Method and Description |
---|---|
void |
ConfigTracker.receiveSyncedConfig(FMLHandshakeMessages.S2CConfigData s2CConfigData,
java.util.function.Supplier<NetworkEvent.Context> contextSupplier) |
Modifier and Type | Field and 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 |
Modifier and Type | Method and Description |
---|---|
static <MSG extends java.util.function.IntSupplier> |
FMLHandshakeHandler.biConsumerFor(ThreeConsumer<FMLHandshakeHandler,? super MSG,? super java.util.function.Supplier<NetworkEvent.Context>> consumer)
Transforms a two-argument instance method reference into a
BiConsumer based on the FMLHandshakeHandler.getHandshake(Supplier) function. |
java.util.function.Supplier<NetworkEvent.Context> |
NetworkEvent.getSource() |
static <MSG extends java.util.function.IntSupplier> |
FMLHandshakeHandler.indexFirst(ThreeConsumer<FMLHandshakeHandler,MSG,java.util.function.Supplier<NetworkEvent.Context>> next)
Transforms a two-argument instance method reference into a
BiConsumer FMLHandshakeHandler.biConsumerFor(ThreeConsumer) , first calling the #handleIndexedMessage(FMLHandshakeMessages.LoginIndexedMessage, Supplier)
method to handle index tracking. |
Modifier and Type | Method and Description |
---|---|
static <MSG extends java.util.function.IntSupplier> |
FMLHandshakeHandler.biConsumerFor(ThreeConsumer<FMLHandshakeHandler,? super MSG,? super java.util.function.Supplier<NetworkEvent.Context>> consumer)
Transforms a two-argument instance method reference into a
BiConsumer based on the FMLHandshakeHandler.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 the
NetworkEvent.Context |
static boolean |
FMLPlayMessages.DimensionInfoMessage.handle(FMLPlayMessages.DimensionInfoMessage message,
java.util.function.Supplier<NetworkEvent.Context> contextSupplier) |
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) |
(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> |
FMLHandshakeHandler.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> |
FMLHandshakeHandler.indexFirst(ThreeConsumer<FMLHandshakeHandler,MSG,java.util.function.Supplier<NetworkEvent.Context>> next)
Transforms a two-argument instance method reference into a
BiConsumer 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 and 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(ICustomPacket<?> payload,
java.util.function.Supplier<NetworkEvent.Context> source) |
NetworkEvent(PacketBuffer payload,
java.util.function.Supplier<NetworkEvent.Context> source,
int loginIndex) |
NetworkEvent(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) |
Modifier and Type | Field and 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 |
Modifier and Type | Method and Description |
---|---|
<MSG> void |
SimpleChannel.reply(MSG msgToReply,
NetworkEvent.Context context) |
Modifier and Type | Method and Description |
---|---|
(package private) <MSG> IndexedMessageCodec.MessageHandler<MSG> |
IndexedMessageCodec.addCodecIndex(int index,
java.lang.Class<MSG> messageType,
java.util.function.BiConsumer<MSG,PacketBuffer> encoder,
java.util.function.Function<PacketBuffer,MSG> decoder,
java.util.function.BiConsumer<MSG,java.util.function.Supplier<NetworkEvent.Context>> messageConsumer,
java.util.Optional<NetworkDirection> networkDirection) |
(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.
|
<MSG> IndexedMessageCodec.MessageHandler<MSG> |
SimpleChannel.registerMessage(int index,
java.lang.Class<MSG> messageType,
java.util.function.BiConsumer<MSG,PacketBuffer> encoder,
java.util.function.Function<PacketBuffer,MSG> decoder,
java.util.function.BiConsumer<MSG,java.util.function.Supplier<NetworkEvent.Context>> messageConsumer) |
<MSG> IndexedMessageCodec.MessageHandler<MSG> |
SimpleChannel.registerMessage(int index,
java.lang.Class<MSG> messageType,
java.util.function.BiConsumer<MSG,PacketBuffer> encoder,
java.util.function.Function<PacketBuffer,MSG> decoder,
java.util.function.BiConsumer<MSG,java.util.function.Supplier<NetworkEvent.Context>> messageConsumer,
java.util.Optional<NetworkDirection> networkDirection) |
private static <M> void |
IndexedMessageCodec.tryDecode(PacketBuffer payload,
java.util.function.Supplier<NetworkEvent.Context> context,
int payloadIndex,
IndexedMessageCodec.MessageHandler<M> codec) |
Constructor and Description |
---|
MessageHandler(int index,
java.lang.Class<MSG> messageType,
java.util.function.BiConsumer<MSG,PacketBuffer> encoder,
java.util.function.Function<PacketBuffer,MSG> decoder,
java.util.function.BiConsumer<MSG,java.util.function.Supplier<NetworkEvent.Context>> messageConsumer,
java.util.Optional<NetworkDirection> networkDirection) |