Package net.minecraftforge.fml.network
Class NetworkRegistry.LoginPayload
java.lang.Object
net.minecraftforge.fml.network.NetworkRegistry.LoginPayload
- Enclosing class:
- NetworkRegistry
Tracks individual outbound messages for dispatch to clients during login handling. Gathered by dispatching
NetworkEvent.GatherLoginPayloadsEvent
during early connection handling.-
Field Summary
Modifier and TypeFieldDescriptionprivate final ResourceLocation
A channel which will receive aNetworkEvent.LoginPayloadEvent
from theFMLLoginWrapper
private final PacketBuffer
The data for sendingprivate final String
Some context for logging purposes -
Constructor Summary
ConstructorDescriptionLoginPayload
(PacketBuffer buffer, ResourceLocation channelName, String messageContext) -
Method Summary
-
Field Details
-
data
The data for sending -
channelName
A channel which will receive aNetworkEvent.LoginPayloadEvent
from theFMLLoginWrapper
-
messageContext
Some context for logging purposes
-
-
Constructor Details
-
LoginPayload
-
-
Method Details
-
getData
-
getChannelName
-
getMessageContext
-