Record Class SelectKnownPacksC2SPacket
java.lang.Object
java.lang.Record
net.minecraft.network.packet.c2s.config.SelectKnownPacksC2SPacket
- Record Components:
knownPacks-
- All Implemented Interfaces:
Packet<ServerConfigurationPacketListener>
public record SelectKnownPacksC2SPacket(List<VersionedIdentifier> knownPacks)
extends Record
implements Packet<ServerConfigurationPacketListener>
- Mappings:
Namespace Name named net/minecraft/network/packet/c2s/config/SelectKnownPacksC2SPacketintermediary net/minecraft/class_9220official abxnamed knownPacksintermediary comp_2326official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PacketCodec<ByteBuf, SelectKnownPacksC2SPacket> private final List<VersionedIdentifier> The field for theknownPacksrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ServerConfigurationPacketListener serverConfigurationPacketListener) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theknownPacksrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.packet.Packet
isWritingErrorSkippable, transitionsNetworkState
-
Field Details
-
knownPacks
The field for theknownPacksrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/network/packet/c2s/config/SelectKnownPacksC2SPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_49020Lnet/minecraft/class_9220;field_49020:Lnet/minecraft/class_9139;official aLabx;a:Lze;
-
-
Constructor Details
-
SelectKnownPacksC2SPacket
-
-
Method Details
-
getPacketType
- Specified by:
getPacketTypein interfacePacket<ServerConfigurationPacketListener>- Mappings:
Namespace Name Mixin selector named getPacketTypeLnet/minecraft/network/packet/Packet;getPacketType()Lnet/minecraft/network/packet/PacketType;intermediary method_65080Lnet/minecraft/class_2596;method_65080()Lnet/minecraft/class_9145;official aLzo;a()Lzq;
-
apply
- Specified by:
applyin interfacePacket<ServerConfigurationPacketListener>- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/network/packet/c2s/config/SelectKnownPacksC2SPacket;apply(Lnet/minecraft/network/listener/ServerConfigurationPacketListener;)Vintermediary method_56910Lnet/minecraft/class_9220;method_56910(Lnet/minecraft/class_8735;)Vofficial aLabx;a(Labv;)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. All components in this record class are compared withObjects::equals(Object,Object). -
knownPacks
Returns the value of theknownPacksrecord component.- Returns:
- the value of the
knownPacksrecord component
-