Package net.minecraftforge.fml.network
Class NetworkRegistry.LoginPayload
- java.lang.Object
-
- net.minecraftforge.fml.network.NetworkRegistry.LoginPayload
-
- Enclosing class:
- NetworkRegistry
public static class NetworkRegistry.LoginPayload extends java.lang.Object
Tracks individual outbound messages for dispatch to clients during login handling. Gathered by dispatchingNetworkEvent.GatherLoginPayloadsEvent
during early connection handling.
-
-
Field Summary
Fields Modifier and Type Field Description private ResourceLocation
channelName
A channel which will receive aNetworkEvent.LoginPayloadEvent
from theFMLLoginWrapper
private PacketBuffer
data
The data for sendingprivate java.lang.String
messageContext
Some context for logging purposes
-
Constructor Summary
Constructors Constructor Description LoginPayload(PacketBuffer buffer, ResourceLocation channelName, java.lang.String messageContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceLocation
getChannelName()
PacketBuffer
getData()
java.lang.String
getMessageContext()
-
-
-
Field Detail
-
data
private final PacketBuffer data
The data for sending
-
channelName
private final ResourceLocation channelName
A channel which will receive aNetworkEvent.LoginPayloadEvent
from theFMLLoginWrapper
-
messageContext
private final java.lang.String messageContext
Some context for logging purposes
-
-
Constructor Detail
-
LoginPayload
public LoginPayload(PacketBuffer buffer, ResourceLocation channelName, java.lang.String messageContext)
-
-
Method Detail
-
getData
public PacketBuffer getData()
-
getChannelName
public ResourceLocation getChannelName()
-
getMessageContext
public java.lang.String getMessageContext()
-
-