public static class NetworkRegistry.LoginPayload
extends java.lang.Object
NetworkEvent.GatherLoginPayloadsEvent
during early connection handling.Modifier and Type | Field and Description |
---|---|
private ResourceLocation |
channelName
A channel which will receive a
NetworkEvent.LoginPayloadEvent from the FMLLoginWrapper |
private PacketBuffer |
data
The data for sending
|
private java.lang.String |
messageContext
Some context for logging purposes
|
Constructor and Description |
---|
LoginPayload(PacketBuffer buffer,
ResourceLocation channelName,
java.lang.String messageContext) |
Modifier and Type | Method and Description |
---|---|
ResourceLocation |
getChannelName() |
PacketBuffer |
getData() |
java.lang.String |
getMessageContext() |
private final PacketBuffer data
private final ResourceLocation channelName
NetworkEvent.LoginPayloadEvent
from the FMLLoginWrapper
private final java.lang.String messageContext
public LoginPayload(PacketBuffer buffer, ResourceLocation channelName, java.lang.String messageContext)
public PacketBuffer getData()
public ResourceLocation getChannelName()
public java.lang.String getMessageContext()