Package | Description |
---|---|
net.minecraftforge.fml.network |
Modifier and Type | Field and Description |
---|---|
(package private) static io.netty.util.AttributeKey<FMLHandshakeHandler> |
FMLNetworkConstants.FML_HANDSHAKE_HANDLER |
Modifier and Type | Method and Description |
---|---|
private static FMLHandshakeHandler |
FMLHandshakeHandler.getHandshake(java.util.function.Supplier<NetworkEvent.Context> contextSupplier)
Retrieve the handshake from the
NetworkEvent.Context |
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 getHandshake(Supplier) function. |
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 biConsumerFor(ThreeConsumer) , first calling the #handleIndexedMessage(FMLHandshakeMessages.LoginIndexedMessage, Supplier)
method to handle index tracking. |