Record Class LoginQueryRequestS2CPacket
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.login.LoginQueryRequestS2CPacket
- Record Components:
queryId
-payload
-
- All Implemented Interfaces:
Packet<ClientLoginPacketListener>
public record LoginQueryRequestS2CPacket(int queryId, LoginQueryRequestPayload payload)
extends Record
implements Packet<ClientLoginPacketListener>
- Mappings:
Namespace Name official adf
intermediary net/minecraft/class_2899
named net/minecraft/network/packet/s2c/login/LoginQueryRequestS2CPacket
official a
intermediary comp_1567
named queryId
official b
intermediary comp_1568
named payload
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private final LoginQueryRequestPayload
The field for thepayload
record component.private final int
The field for thequeryId
record component. -
Constructor Summary
ConstructorDescriptionLoginQueryRequestS2CPacket
(int queryId, LoginQueryRequestPayload loginQueryRequestPayload) -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(ClientLoginPacketListener clientLoginPacketListener) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.payload()
Returns the value of thepayload
record component.int
queryId()
Returns the value of thequeryId
record component.private static LoginQueryRequestPayload
readPayload
(Identifier id, PacketByteBuf buf) private static UnknownLoginQueryRequestPayload
readUnknownPayload
(Identifier id, PacketByteBuf buf) 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. -
payload
The field for thepayload
record component. -
MAX_PAYLOAD_SIZE
private static final int MAX_PAYLOAD_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector official c
Ladf;c:I
intermediary field_33373
Lnet/minecraft/class_2899;field_33373:I
named MAX_PAYLOAD_SIZE
Lnet/minecraft/network/packet/s2c/login/LoginQueryRequestS2CPacket;MAX_PAYLOAD_SIZE:I
-
-
Constructor Details
-
LoginQueryRequestS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>
Ladf;<init>(Lso;)V
intermediary <init>
Lnet/minecraft/class_2899;<init>(Lnet/minecraft/class_2540;)V
named <init>
Lnet/minecraft/network/packet/s2c/login/LoginQueryRequestS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
LoginQueryRequestS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>
Ladf;<init>(ILadq;)V
intermediary <init>
Lnet/minecraft/class_2899;<init>(ILnet/minecraft/class_8595;)V
named <init>
Lnet/minecraft/network/packet/s2c/login/LoginQueryRequestS2CPacket;<init>(ILnet/minecraft/network/packet/s2c/login/LoginQueryRequestPayload;)V
-
-
Method Details
-
readPayload
- Mappings:
Namespace Name Mixin selector official a
Ladf;a(Laew;Lso;)Ladq;
intermediary method_52287
Lnet/minecraft/class_2899;method_52287(Lnet/minecraft/class_2960;Lnet/minecraft/class_2540;)Lnet/minecraft/class_8595;
named readPayload
Lnet/minecraft/network/packet/s2c/login/LoginQueryRequestS2CPacket;readPayload(Lnet/minecraft/util/Identifier;Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/network/packet/s2c/login/LoginQueryRequestPayload;
-
readUnknownPayload
- Mappings:
Namespace Name Mixin selector official b
Ladf;b(Laew;Lso;)Lads;
intermediary method_52288
Lnet/minecraft/class_2899;method_52288(Lnet/minecraft/class_2960;Lnet/minecraft/class_2540;)Lnet/minecraft/class_8597;
named readUnknownPayload
Lnet/minecraft/network/packet/s2c/login/LoginQueryRequestS2CPacket;readUnknownPayload(Lnet/minecraft/util/Identifier;Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/network/packet/s2c/login/UnknownLoginQueryRequestPayload;
-
write
- Specified by:
write
in interfacePacket<ClientLoginPacketListener>
- 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<ClientLoginPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Ladf;a(Lade;)V
intermediary method_12591
Lnet/minecraft/class_2899;method_12591(Lnet/minecraft/class_2896;)V
named apply
Lnet/minecraft/network/packet/s2c/login/LoginQueryRequestS2CPacket;apply(Lnet/minecraft/network/listener/ClientLoginPacketListener;)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
-
payload
Returns the value of thepayload
record component.- Returns:
- the value of the
payload
record component
-