类 NetworkRegistry.LoginPayload
java.lang.Object
net.minecraftforge.network.NetworkRegistry.LoginPayload
- 封闭类:
- NetworkRegistry
Tracks individual outbound messages for dispatch to clients during login handling. Gathered by dispatching
NetworkEvent.GatherLoginPayloadsEvent
during early connection handling.-
字段概要
字段修饰符和类型字段说明private final ResourceLocation
A channel which will receive aNetworkEvent.LoginPayloadEvent
from theLoginWrapper
private final FriendlyByteBuf
The data for sendingprivate final String
Some context for logging purposesprivate final boolean
If the connection should await a response to this packet to continue with the handshake -
构造器概要
构造器构造器说明LoginPayload
(FriendlyByteBuf buffer, ResourceLocation channelName, String messageContext) LoginPayload
(FriendlyByteBuf buffer, ResourceLocation channelName, String messageContext, boolean needsResponse) -
方法概要
-
字段详细资料
-
data
The data for sending -
channelName
A channel which will receive aNetworkEvent.LoginPayloadEvent
from 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
-
-
构造器详细资料
-
LoginPayload
-
LoginPayload
public LoginPayload(FriendlyByteBuf buffer, ResourceLocation channelName, String messageContext, boolean needsResponse)
-
-
方法详细资料
-
getData
-
getChannelName
-
getMessageContext
-
needsResponse
public boolean needsResponse()
-