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 class_8594 response)
extends Record
implements Packet<ServerLoginPacketListener>
- Mappings:
Namespace Name official adeintermediary net/minecraft/class_2913named net/minecraft/network/packet/c2s/login/LoginQueryResponseC2SPacketofficial aintermediary comp_1569named queryIdofficial bintermediary comp_1570named response
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate final intThe field for thequeryIdrecord component.private final @Nullable class_8594The field for theresponserecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ServerLoginPacketListener serverLoginPacketListener) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.private static class_8594method_52290(int int2, PacketByteBuf packetByteBuf) static LoginQueryResponseC2SPacketmethod_52292(PacketByteBuf packetByteBuf) private static class_8594method_52293(PacketByteBuf packetByteBuf) intqueryId()Returns the value of thequeryIdrecord component.response()Returns the value of theresponserecord component.final StringtoString()Returns a string representation of this record class.voidwrite(PacketByteBuf buf) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.packet.Packet
isWritingErrorSkippable, method_52273
-
Field Details
-
queryId
private final int queryIdThe field for thequeryIdrecord component. -
response
The field for theresponserecord component. -
MAX_PAYLOAD_SIZE
private static final int MAX_PAYLOAD_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector official cLade;c:Iintermediary field_33374Lnet/minecraft/class_2913;field_33374:Inamed MAX_PAYLOAD_SIZELnet/minecraft/network/packet/c2s/login/LoginQueryResponseC2SPacket;MAX_PAYLOAD_SIZE:I
-
-
Constructor Details
-
LoginQueryResponseC2SPacket
-
-
Method Details
-
method_52292
- Mappings:
Namespace Name Mixin selector official bLade;b(Lsh;)Lade;intermediary method_52292Lnet/minecraft/class_2913;method_52292(Lnet/minecraft/class_2540;)Lnet/minecraft/class_2913;named method_52292Lnet/minecraft/network/packet/c2s/login/LoginQueryResponseC2SPacket;method_52292(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/network/packet/c2s/login/LoginQueryResponseC2SPacket;
-
method_52290
- Mappings:
Namespace Name Mixin selector official aLade;a(ILsh;)Ladi;intermediary method_52290Lnet/minecraft/class_2913;method_52290(ILnet/minecraft/class_2540;)Lnet/minecraft/class_8594;named method_52290Lnet/minecraft/network/packet/c2s/login/LoginQueryResponseC2SPacket;method_52290(ILnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/class_8594;
-
method_52293
- Mappings:
Namespace Name Mixin selector official cLade;c(Lsh;)Ladi;intermediary method_52293Lnet/minecraft/class_2913;method_52293(Lnet/minecraft/class_2540;)Lnet/minecraft/class_8594;named method_52293Lnet/minecraft/network/packet/c2s/login/LoginQueryResponseC2SPacket;method_52293(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/class_8594;
-
write
- Specified by:
writein interfacePacket<ServerLoginPacketListener>- Mappings:
Namespace Name Mixin selector official aLuw;a(Lsh;)Vintermediary method_11052Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)Vnamed writeLnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
applyin interfacePacket<ServerLoginPacketListener>- Mappings:
Namespace Name Mixin selector official aLade;a(Ladd;)Vintermediary method_12645Lnet/minecraft/class_2913;method_12645(Lnet/minecraft/class_2911;)Vnamed applyLnet/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 thequeryIdrecord component.- Returns:
- the value of the
queryIdrecord component
-
response
Returns the value of theresponserecord component.- Returns:
- the value of the
responserecord component
-