Package net.minecraftforge.fml.network
Class FMLLoginWrapper
- java.lang.Object
-
- net.minecraftforge.fml.network.FMLLoginWrapper
-
public class FMLLoginWrapper extends java.lang.Object
Wrapper for custom login packets. Transforms unnamed login channel messages into channels dispatched the same as regular custom packets.
-
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.logging.log4j.Logger
LOGGER
(package private) static ResourceLocation
WRAPPER
private EventNetworkChannel
wrapperChannel
-
Constructor Summary
Constructors Constructor Description FMLLoginWrapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
sendServerToClientLoginPacket(ResourceLocation resourceLocation, PacketBuffer buffer, int index, NetworkManager manager)
private PacketBuffer
wrapPacket(ResourceLocation rl, PacketBuffer buf)
private <T extends NetworkEvent>
voidwrapperReceived(T packet)
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
WRAPPER
static final ResourceLocation WRAPPER
-
wrapperChannel
private EventNetworkChannel wrapperChannel
-
-
Method Detail
-
wrapperReceived
private <T extends NetworkEvent> void wrapperReceived(T packet)
-
wrapPacket
private PacketBuffer wrapPacket(ResourceLocation rl, PacketBuffer buf)
-
sendServerToClientLoginPacket
void sendServerToClientLoginPacket(ResourceLocation resourceLocation, PacketBuffer buffer, int index, NetworkManager manager)
-
-