Package net.minecraft.registry
Record Class RegistryLoader.ElementsAndTags
java.lang.Object
java.lang.Record
net.minecraft.registry.RegistryLoader.ElementsAndTags
- Record Components:
elements
--
- Enclosing class:
RegistryLoader
public static record RegistryLoader.ElementsAndTags(List<SerializableRegistries.SerializedRegistryEntry> elements, TagPacketSerializer.Serialized tags)
extends Record
- Mappings:
Namespace Name named net/minecraft/registry/RegistryLoader$ElementsAndTags
intermediary net/minecraft/class_7655$class_9841
official alm$c
named elements
intermediary comp_2896
official a
named tags
intermediary comp_2897
official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<SerializableRegistries.SerializedRegistryEntry> The field for theelements
record component.private final TagPacketSerializer.Serialized
The field for thetags
record component. -
Constructor Summary
ConstructorsConstructorDescriptionElementsAndTags
(List<SerializableRegistries.SerializedRegistryEntry> list, TagPacketSerializer.Serialized serialized) -
Method Summary
Modifier and TypeMethodDescriptionelements()
Returns the value of theelements
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.tags()
Returns the value of thetags
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
ElementsAndTags
public ElementsAndTags(List<SerializableRegistries.SerializedRegistryEntry> list, TagPacketSerializer.Serialized serialized)
-
-
Method Details
-
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)
. -
elements
Returns the value of theelements
record component.- Returns:
- the value of the
elements
record component
-
tags
Returns the value of thetags
record component.- Returns:
- the value of the
tags
record component
-