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 - aiz- named - queryId- intermediary - comp_1569- official - b- named - response- intermediary - comp_1570- official - c
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final PacketCodec<PacketByteBuf, LoginQueryResponseC2SPacket> private static final intprivate final intThe field for thequeryIdrecord component.private final @Nullable LoginQueryResponsePayloadThe field for theresponserecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionLoginQueryResponseC2SPacket(int int2, @Nullable LoginQueryResponsePayload loginQueryResponsePayload) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidapply(ServerLoginPacketListener serverLoginPacketListener) final booleanIndicates whether some other object is "equal to" this one.private static LoginQueryResponsePayloadfinal inthashCode()Returns a hash code value for this object.intqueryId()Returns the value of thequeryIdrecord component.private static LoginQueryResponseC2SPacketread(PacketByteBuf buf) private static LoginQueryResponsePayloadreadPayload(int queryId, PacketByteBuf buf) Returns the response payload read frombuf.response()Returns the value of theresponserecord component.final StringtoString()Returns a string representation of this record class.private voidwrite(PacketByteBuf buf) Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.packet.PacketisWritingErrorSkippable, transitionsNetworkState
- 
Field Details- 
queryIdprivate final int queryIdThe field for thequeryIdrecord component.
- 
responseThe field for theresponserecord 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- Laiz;a:Lyn;
 
- 
MAX_PAYLOAD_SIZEprivate 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- Laiz;d:I
 
 
- 
- 
Constructor Details- 
LoginQueryResponseC2SPacketpublic LoginQueryResponseC2SPacket(int int2, @Nullable @Nullable LoginQueryResponsePayload loginQueryResponsePayload) 
 
- 
- 
Method Details- 
read- 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- Laiz;a(Lvl;)Laiz;
 
- 
readPayloadReturns 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 - 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- Laiz;a(ILvl;)Lajd;
 
- 
getVanillaPayload- 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- Laiz;b(Lvl;)Lajd;
 
- 
write- 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- Laiz;c(Lvl;)V
 
- 
getPacketType- Specified by:
- getPacketTypein interface- Packet<ServerLoginPacketListener>
- Mappings:
- Namespace - Name - Mixin selector - named - getPacketType- Lnet/minecraft/network/packet/Packet;getPacketType()Lnet/minecraft/network/packet/PacketType;- intermediary - method_65080- Lnet/minecraft/class_2596;method_65080()Lnet/minecraft/class_9145;- official - a- Lyw;a()Lyy;
 
- 
apply- Specified by:
- applyin 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- Laiz;a(Laiy;)V
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
queryIdpublic int queryId()Returns the value of thequeryIdrecord component.- Returns:
- the value of the queryIdrecord component
 
- 
responseReturns the value of theresponserecord component.- Returns:
- the value of the responserecord component
 
 
-