Package net.minecraftforge.network
Class NetworkRegistry.LoginPayload
java.lang.Object
net.minecraftforge.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
FieldsModifier and TypeFieldDescriptionprivate final ResourceLocationA channel which will receive aNetworkEvent.LoginPayloadEventfrom theLoginWrapperprivate final FriendlyByteBufThe data for sendingprivate final StringSome context for logging purposesprivate final booleanIf the connection should await a response to this packet to continue with the handshake - 
Constructor Summary
ConstructorsConstructorDescriptionLoginPayload(FriendlyByteBuf buffer, ResourceLocation channelName, String messageContext) LoginPayload(FriendlyByteBuf buffer, ResourceLocation channelName, String messageContext, boolean needsResponse)  - 
Method Summary
 
- 
Field Details
- 
data
The data for sending - 
channelName
A channel which will receive aNetworkEvent.LoginPayloadEventfrom theLoginWrapper - 
messageContext
Some context for logging purposes - 
needsResponse
private final boolean needsResponseIf the connection should await a response to this packet to continue with the handshake 
 - 
 - 
Constructor Details
- 
LoginPayload
 - 
LoginPayload
public LoginPayload(FriendlyByteBuf buffer, ResourceLocation channelName, String messageContext, boolean needsResponse)  
 - 
 - 
Method Details
- 
getData
 - 
getChannelName
 - 
getMessageContext
 - 
needsResponse
public boolean needsResponse() 
 -