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.ObjectTracks individual outbound messages for dispatch to clients during login handling. Gathered by dispatchingNetworkEvent.GatherLoginPayloadsEventduring early connection handling.
-
-
Field Summary
Fields Modifier and Type Field Description private ResourceLocationchannelNameA channel which will receive aNetworkEvent.LoginPayloadEventfrom theFMLLoginWrapperprivate PacketBufferdataThe data for sendingprivate java.lang.StringmessageContextSome 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 ResourceLocationgetChannelName()PacketBuffergetData()java.lang.StringgetMessageContext()
-
-
-
Field Detail
-
data
private final PacketBuffer data
The data for sending
-
channelName
private final ResourceLocation channelName
A channel which will receive aNetworkEvent.LoginPayloadEventfrom 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()
-
-