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.

@FunctionalInterface public static interface ServerLoginNetworking.LoginQueryResponseHandler
  • Method Summary

    Modifier and Type
    Method
    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.
  • 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 server
      handler - the network handler that received this packet, representing the player/client who sent the response
      understood - whether the client understood the packet
      buf - the payload of the packet
      synchronizer - the synchronizer which may be used to delay log-in till a Future is completed.
      responseSender - the packet sender