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 official adl
intermediary net/minecraft/class_2913
named net/minecraft/network/packet/c2s/login/LoginQueryResponseC2SPacket
official a
intermediary comp_1569
named queryId
official b
intermediary comp_1570
named response
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private final int
The field for thequeryId
record component.private final @Nullable LoginQueryResponsePayload
The field for theresponse
record component. -
Constructor Summary
ConstructorDescriptionLoginQueryResponseC2SPacket
(int int2, @Nullable LoginQueryResponsePayload loginQueryResponsePayload) -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(ServerLoginPacketListener serverLoginPacketListener) final boolean
Indicates whether some other object is "equal to" this one.private static LoginQueryResponsePayload
final int
hashCode()
Returns a hash code value for this object.int
queryId()
Returns the value of thequeryId
record component.static LoginQueryResponseC2SPacket
read
(PacketByteBuf buf) private static LoginQueryResponsePayload
readPayload
(int queryId, PacketByteBuf buf) Returns the response payload read frombuf
.@Nullable LoginQueryResponsePayload
response()
Returns the value of theresponse
record component.final String
toString()
Returns a string representation of this record class.void
write
(PacketByteBuf buf) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.network.packet.Packet
getNewNetworkState, isWritingErrorSkippable
-
Field Details
-
queryId
private final int queryIdThe field for thequeryId
record component. -
response
The field for theresponse
record component. -
MAX_PAYLOAD_SIZE
private static final int MAX_PAYLOAD_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector official c
Ladl;c:I
intermediary field_33374
Lnet/minecraft/class_2913;field_33374:I
named MAX_PAYLOAD_SIZE
Lnet/minecraft/network/packet/c2s/login/LoginQueryResponseC2SPacket;MAX_PAYLOAD_SIZE:I
-
-
Constructor Details
-
LoginQueryResponseC2SPacket
public LoginQueryResponseC2SPacket(int int2, @Nullable @Nullable LoginQueryResponsePayload loginQueryResponsePayload)
-
-
Method Details
-
read
- Mappings:
Namespace Name Mixin selector official b
Ladl;b(Lso;)Ladl;
intermediary method_52292
Lnet/minecraft/class_2913;method_52292(Lnet/minecraft/class_2540;)Lnet/minecraft/class_2913;
named read
Lnet/minecraft/network/packet/c2s/login/LoginQueryResponseC2SPacket;read(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/network/packet/c2s/login/LoginQueryResponseC2SPacket;
-
readPayload
Returns the response payload read frombuf
.- 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 returnsUnknownLoginQueryResponsePayload.INSTANCE
. - Mappings:
Namespace Name Mixin selector official a
Ladl;a(ILso;)Ladp;
intermediary method_52290
Lnet/minecraft/class_2913;method_52290(ILnet/minecraft/class_2540;)Lnet/minecraft/class_8594;
named readPayload
Lnet/minecraft/network/packet/c2s/login/LoginQueryResponseC2SPacket;readPayload(ILnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/network/packet/c2s/login/LoginQueryResponsePayload;
-
getVanillaPayload
- Mappings:
Namespace Name Mixin selector official c
Ladl;c(Lso;)Ladp;
intermediary method_52293
Lnet/minecraft/class_2913;method_52293(Lnet/minecraft/class_2540;)Lnet/minecraft/class_8594;
named getVanillaPayload
Lnet/minecraft/network/packet/c2s/login/LoginQueryResponseC2SPacket;getVanillaPayload(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/network/packet/c2s/login/LoginQueryResponsePayload;
-
write
- Specified by:
write
in interfacePacket<ServerLoginPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lvd;a(Lso;)V
intermediary method_11052
Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
named write
Lnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
apply
in interfacePacket<ServerLoginPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Ladl;a(Ladk;)V
intermediary method_12645
Lnet/minecraft/class_2913;method_12645(Lnet/minecraft/class_2911;)V
named apply
Lnet/minecraft/network/packet/c2s/login/LoginQueryResponseC2SPacket;apply(Lnet/minecraft/network/listener/ServerLoginPacketListener;)V
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
queryId
public int queryId()Returns the value of thequeryId
record component.- Returns:
- the value of the
queryId
record component
-
response
Returns the value of theresponse
record component.- Returns:
- the value of the
response
record component
-