@FunctionalInterface public static interface ServerLoginNetworking.LoginQueryResponseHandler
Modifier and Type | Method and Description |
---|---|
void |
receive(net.minecraft.server.MinecraftServer server,
net.minecraft.server.network.ServerLoginNetworkHandler handler,
boolean understood,
net.minecraft.network.PacketByteBuf buf,
ServerLoginNetworking.LoginSynchronizer synchronizer,
PacketSender responseSender)
Handles an incoming query response from a client.
|
void receive(net.minecraft.server.MinecraftServer server, net.minecraft.server.network.ServerLoginNetworkHandler handler, boolean understood, net.minecraft.network.PacketByteBuf buf, ServerLoginNetworking.LoginSynchronizer synchronizer, PacketSender responseSender)
This method is executed on netty's event loops. Modification to the game should be scheduled using the provided Minecraft client instance.
Whether the client understood the query should be checked before reading from the payload of the packet.
server
- the serverhandler
- the network handler that received this packet, representing the player/client who sent the responseunderstood
- whether the client understood the packetbuf
- the payload of the packetsynchronizer
- the synchronizer which may be used to delay log-in till a Future
is completed.responseSender
- the packet sender