Record Class DynamicRegistriesS2CPacket
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.config.DynamicRegistriesS2CPacket
- Record Components:
registryManager-
- All Implemented Interfaces:
Packet<ClientConfigurationPacketListener>
public record DynamicRegistriesS2CPacket(DynamicRegistryManager.Immutable registryManager)
extends Record
implements Packet<ClientConfigurationPacketListener>
- Mappings:
Namespace Name official wjintermediary net/minecraft/class_8734named net/minecraft/network/packet/s2c/config/DynamicRegistriesS2CPacketofficial aintermediary comp_1724named registryManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DynamicRegistryManager.ImmutableThe field for theregistryManagerrecord component.private static final RegistryOps<NbtElement> -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ClientConfigurationPacketListener clientConfigurationPacketListener) 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 theregistryManagerrecord 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
getNewNetworkState, isWritingErrorSkippable
-
Field Details
-
registryManager
The field for theregistryManagerrecord component. -
VANILLA_REGISTRY_OPS
- Mappings:
Namespace Name Mixin selector official bLwj;b:Laen;intermediary field_45713Lnet/minecraft/class_8734;field_45713:Lnet/minecraft/class_6903;named VANILLA_REGISTRY_OPSLnet/minecraft/network/packet/s2c/config/DynamicRegistriesS2CPacket;VANILLA_REGISTRY_OPS:Lnet/minecraft/registry/RegistryOps;
-
-
Constructor Details
-
DynamicRegistriesS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>Lwj;<init>(Lsh;)Vintermediary <init>Lnet/minecraft/class_8734;<init>(Lnet/minecraft/class_2540;)Vnamed <init>Lnet/minecraft/network/packet/s2c/config/DynamicRegistriesS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
DynamicRegistriesS2CPacket
-
-
Method Details
-
write
- Specified by:
writein interfacePacket<ClientConfigurationPacketListener>- 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<ClientConfigurationPacketListener>- Mappings:
Namespace Name Mixin selector official aLwj;a(Lwh;)Vintermediary method_53042Lnet/minecraft/class_8734;method_53042(Lnet/minecraft/class_8732;)Vnamed applyLnet/minecraft/network/packet/s2c/config/DynamicRegistriesS2CPacket;apply(Lnet/minecraft/network/listener/ClientConfigurationPacketListener;)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). -
registryManager
Returns the value of theregistryManagerrecord component.- Returns:
- the value of the
registryManagerrecord component
-