Package net.minecraftforge.network
Class NetworkInitialization
java.lang.Object
net.minecraftforge.network.NetworkInitialization
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SimpleChannel
static final io.netty.util.AttributeKey
<ForgePacketHandler> private static final ResourceLocation
private static final org.apache.logging.log4j.Logger
static final SimpleChannel
static final ResourceLocation
private static final org.apache.logging.log4j.Marker
static final SimpleChannel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static <MSG> BiConsumer
<MSG, CustomPayloadEvent.Context> ctx
(NetworkInitialization.Handler<MSG> handler) static int
static void
init()
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
MARKER
private static final org.apache.logging.log4j.Marker MARKER -
LOGIN_NAME
-
HANDSHAKE_NAME
-
CONTEXT
-
LOGIN
-
CONFIG
-
PLAY
-
-
Constructor Details
-
NetworkInitialization
public NetworkInitialization()
-
-
Method Details
-
init
public static void init() -
getVersion
public static int getVersion() -
ctx
private static <MSG> BiConsumer<MSG,CustomPayloadEvent.Context> ctx(NetworkInitialization.Handler<MSG> handler)
-