Record Class LoginQueryResponseC2SPacket

java.lang.Object
java.lang.Record
net.minecraft.network.packet.c2s.login.LoginQueryResponseC2SPacket
Record Components:
queryId -
response -
All Implemented Interfaces:
Packet<ServerLoginPacketListener>

public record LoginQueryResponseC2SPacket(int queryId, @Nullable LoginQueryResponsePayload response) extends Record implements Packet<ServerLoginPacketListener>
Mappings:
Namespace Name
named net/minecraft/network/packet/c2s/login/LoginQueryResponseC2SPacket
intermediary net/minecraft/class_2913
official akd
named queryId
intermediary comp_1569
official b
named response
intermediary comp_1570
official c
  • Field Details

    • queryId

      private final int queryId
      The field for the queryId record component.
    • response

      The field for the response record component.
    • CODEC

      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/network/packet/c2s/login/LoginQueryResponseC2SPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_48249 Lnet/minecraft/class_2913;field_48249:Lnet/minecraft/class_9139;
      official a Lakd;a:Lzt;
    • MAX_PAYLOAD_SIZE

      private static final int MAX_PAYLOAD_SIZE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MAX_PAYLOAD_SIZE Lnet/minecraft/network/packet/c2s/login/LoginQueryResponseC2SPacket;MAX_PAYLOAD_SIZE:I
      intermediary field_33374 Lnet/minecraft/class_2913;field_33374:I
      official d Lakd;d:I
  • Constructor Details

  • Method Details

    • read

      private static LoginQueryResponseC2SPacket read(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named read Lnet/minecraft/network/packet/c2s/login/LoginQueryResponseC2SPacket;read(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/network/packet/c2s/login/LoginQueryResponseC2SPacket;
      intermediary method_52292 Lnet/minecraft/class_2913;method_52292(Lnet/minecraft/class_2540;)Lnet/minecraft/class_2913;
      official a Lakd;a(Lws;)Lakd;
    • readPayload

      private static LoginQueryResponsePayload readPayload(int queryId, PacketByteBuf buf)
      Returns the response payload read from buf.
      Returns:
      the response payload read from buf
      Implementation Note:
      This delegates the logic to getVanillaPayload(net.minecraft.network.PacketByteBuf), which simply validates the size of the buffer and returns UnknownLoginQueryResponsePayload.INSTANCE.
      Mappings:
      Namespace Name Mixin selector
      named readPayload Lnet/minecraft/network/packet/c2s/login/LoginQueryResponseC2SPacket;readPayload(ILnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/network/packet/c2s/login/LoginQueryResponsePayload;
      intermediary method_52290 Lnet/minecraft/class_2913;method_52290(ILnet/minecraft/class_2540;)Lnet/minecraft/class_8594;
      official a Lakd;a(ILws;)Lakh;
    • getVanillaPayload

      private static LoginQueryResponsePayload getVanillaPayload(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named getVanillaPayload Lnet/minecraft/network/packet/c2s/login/LoginQueryResponseC2SPacket;getVanillaPayload(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/network/packet/c2s/login/LoginQueryResponsePayload;
      intermediary method_52293 Lnet/minecraft/class_2913;method_52293(Lnet/minecraft/class_2540;)Lnet/minecraft/class_8594;
      official b Lakd;b(Lws;)Lakh;
    • write

      private void write(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/network/packet/c2s/login/LoginQueryResponseC2SPacket;write(Lnet/minecraft/network/PacketByteBuf;)V
      intermediary method_11052 Lnet/minecraft/class_2913;method_11052(Lnet/minecraft/class_2540;)V
      official c Lakd;c(Lws;)V
    • getPacketId

      public PacketType<LoginQueryResponseC2SPacket> getPacketId()
      Specified by:
      getPacketId in interface Packet<ServerLoginPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named getPacketId Lnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;
      intermediary method_55846 Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;
      official a Laac;a()Laae;
    • apply

      public void apply(ServerLoginPacketListener serverLoginPacketListener)
      Specified by:
      apply in interface Packet<ServerLoginPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/network/packet/c2s/login/LoginQueryResponseC2SPacket;apply(Lnet/minecraft/network/listener/ServerLoginPacketListener;)V
      intermediary method_12645 Lnet/minecraft/class_2913;method_12645(Lnet/minecraft/class_2911;)V
      official a Lakd;a(Lakc;)V
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • queryId

      public int queryId()
      Returns the value of the queryId record component.
      Returns:
      the value of the queryId record component
    • response

      Returns the value of the response record component.
      Returns:
      the value of the response record component