Record Class FallbackResourceManager.EntryStack
java.lang.Object
java.lang.Record
net.minecraft.server.packs.resources.FallbackResourceManager.EntryStack
- Enclosing class:
- FallbackResourceManager
static record FallbackResourceManager.EntryStack(ResourceLocation metadataLocation, List<FallbackResourceManager.SinglePackResourceThunkSupplier> entries)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<FallbackResourceManager.SinglePackResourceThunkSupplier>The field for theentriesrecord component.private final ResourceLocationThe field for themetadataLocationrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionEntryStack(ResourceLocation metadataLocation, List<FallbackResourceManager.SinglePackResourceThunkSupplier> entries) Creates an instance of aEntryStackrecord class. -
Method Summary
Modifier and TypeMethodDescriptionentries()Returns the value of theentriesrecord component.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 themetadataLocationrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
metadataLocation
The field for themetadataLocationrecord component. -
entries
The field for theentriesrecord component.
-
-
Constructor Details
-
EntryStack
EntryStack(ResourceLocation metadataLocation, List<FallbackResourceManager.SinglePackResourceThunkSupplier> entries) Creates an instance of aEntryStackrecord class.- Parameters:
metadataLocation- the value for themetadataLocationrecord componententries- the value for theentriesrecord component
-
-
Method Details
-
createThunks
-
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). -
metadataLocation
Returns the value of themetadataLocationrecord component.- Returns:
- the value of the
metadataLocationrecord component
-
entries
Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-