Record Class FallbackResourceManager.EntryStack
java.lang.Object
java.lang.Record
net.minecraft.server.packs.resources.FallbackResourceManager.EntryStack
- Enclosing class:
FallbackResourceManager
static record FallbackResourceManager.EntryStack(Identifier fileLocation, Identifier metadataLocation, List<FallbackResourceManager.ResourceWithSource> fileSources, Map<PackResources,IoSupplier<InputStream>> metaSources)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for thefileLocationrecord component.private final List<FallbackResourceManager.ResourceWithSource> The field for thefileSourcesrecord component.private final IdentifierThe field for themetadataLocationrecord component.private final Map<PackResources, IoSupplier<InputStream>> The field for themetaSourcesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionEntryStack(Identifier p_467793_) EntryStack(Identifier fileLocation, Identifier metadataLocation, List<FallbackResourceManager.ResourceWithSource> fileSources, Map<PackResources, IoSupplier<InputStream>> metaSources) Creates an instance of aEntryStackrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileLocationrecord component.Returns the value of thefileSourcesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themetadataLocationrecord component.Returns the value of themetaSourcesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
fileLocation
The field for thefileLocationrecord component. -
metadataLocation
The field for themetadataLocationrecord component. -
fileSources
The field for thefileSourcesrecord component. -
metaSources
The field for themetaSourcesrecord component.
-
-
Constructor Details
-
EntryStack
EntryStack(Identifier p_467793_) -
EntryStack
EntryStack(Identifier fileLocation, Identifier metadataLocation, List<FallbackResourceManager.ResourceWithSource> fileSources, Map<PackResources, IoSupplier<InputStream>> metaSources) Creates an instance of aEntryStackrecord class.- Parameters:
fileLocation- the value for thefileLocationrecord componentmetadataLocation- the value for themetadataLocationrecord componentfileSources- the value for thefileSourcesrecord componentmetaSources- the value for themetaSourcesrecord component
-
-
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). -
fileLocation
Returns the value of thefileLocationrecord component.- Returns:
- the value of the
fileLocationrecord component
-
metadataLocation
Returns the value of themetadataLocationrecord component.- Returns:
- the value of the
metadataLocationrecord component
-
fileSources
Returns the value of thefileSourcesrecord component.- Returns:
- the value of the
fileSourcesrecord component
-
metaSources
Returns the value of themetaSourcesrecord component.- Returns:
- the value of the
metaSourcesrecord component
-