Class NetworkRegistry.LoginPayload
java.lang.Object
net.minecraftforge.fmllegacy.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 ResourceLocation
A channel which will receive aNetworkEvent.LoginPayloadEvent
from theFMLLoginWrapper
private FriendlyByteBuf
The data for sendingprivate String
Some context for logging purposes -
Constructor Summary
ConstructorDescriptionLoginPayload(FriendlyByteBuf 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
-