Interface ServerLoginNetworking.LoginQueryResponseHandler
- Enclosing class:
- ServerLoginNetworking
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
Method Details
-
receive
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.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.
- Parameters:
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 aFuture
is completed.responseSender
- the packet sender
-