Package net.minecraftforge.network
Class LoginWrapper
java.lang.Object
net.minecraftforge.network.LoginWrapper
Wrapper for custom login packets. Transforms unnamed login channel messages into channels dispatched the same
as regular custom packets.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.apache.logging.log4j.Logger
(package private) static final ResourceLocation
private EventNetworkChannel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) void
sendServerToClientLoginPacket
(ResourceLocation resourceLocation, FriendlyByteBuf buffer, int index, Connection manager) private FriendlyByteBuf
wrapPacket
(ResourceLocation rl, FriendlyByteBuf buf) private <T extends NetworkEvent>
voidwrapperReceived
(T packet)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
WRAPPER
-
wrapperChannel
-
-
Constructor Details
-
LoginWrapper
LoginWrapper()
-
-
Method Details
-
wrapperReceived
-
wrapPacket
-
sendServerToClientLoginPacket
void sendServerToClientLoginPacket(ResourceLocation resourceLocation, FriendlyByteBuf buffer, int index, Connection manager)
-