Package net.minecraft.registry.tag
Record Class TagGroupLoader.RegistryTags<T>
java.lang.Object
java.lang.Record
net.minecraft.registry.tag.TagGroupLoader.RegistryTags<T>
- Record Components:
key--
- Enclosing class:
TagGroupLoader<T>
public static record TagGroupLoader.RegistryTags<T>(RegistryKey<? extends Registry<T>> key, Map<TagKey<T>,List<RegistryEntry<T>>> tags)
extends Record
- Mappings:
Namespace Name named net/minecraft/registry/tag/TagGroupLoader$RegistryTagsintermediary net/minecraft/class_3503$class_6863official bek$cnamed keyintermediary comp_328official anamed tagsintermediary comp_329official b
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRegistryTags(RegistryKey<? extends Registry<T>> key, Map<TagKey<T>, List<RegistryEntry<T>>> tags) Creates an instance of aRegistryTagsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.RegistryKey<? extends Registry<T>> key()Returns the value of thekeyrecord component.tags()Returns the value of thetagsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
tags
Returns the value of thetagsrecord component.- Returns:
- the value of the
tagsrecord component
-