Package net.minecraft.tags
Record Class TagLoader.SortingEntry
java.lang.Object
java.lang.Record
net.minecraft.tags.TagLoader.SortingEntry
- All Implemented Interfaces:
DependencySorter.Entry<ResourceLocation>
static record TagLoader.SortingEntry(List<TagLoader.EntryWithSource> entries)
extends Record
implements DependencySorter.Entry<ResourceLocation>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<TagLoader.EntryWithSource>
The field for theentries
record component. -
Constructor Summary
ConstructorsConstructorDescriptionSortingEntry
(List<TagLoader.EntryWithSource> entries) Creates an instance of aSortingEntry
record class. -
Method Summary
Modifier and TypeMethodDescriptionentries()
Returns the value of theentries
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.final String
toString()
Returns a string representation of this record class.void
visitOptionalDependencies
(Consumer<ResourceLocation> p_285469_) void
visitRequiredDependencies
(Consumer<ResourceLocation> p_285529_)
-
Field Details
-
entries
The field for theentries
record component.
-
-
Constructor Details
-
SortingEntry
SortingEntry(List<TagLoader.EntryWithSource> entries) Creates an instance of aSortingEntry
record class.- Parameters:
entries
- the value for theentries
record component
-
-
Method Details
-
visitRequiredDependencies
- Specified by:
visitRequiredDependencies
in interfaceDependencySorter.Entry<ResourceLocation>
-
visitOptionalDependencies
- Specified by:
visitOptionalDependencies
in interfaceDependencySorter.Entry<ResourceLocation>
-
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)
. -
entries
Returns the value of theentries
record component.- Returns:
- the value of the
entries
record component
-