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 fileLocation, ResourceLocation metadataLocation, List<FallbackResourceManager.ResourceWithSource> fileSources, Map<PackResources,IoSupplier<InputStream>> metaSources)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ResourceLocation
The field for thefileLocation
record component.private final List
<FallbackResourceManager.ResourceWithSource> The field for thefileSources
record component.private final ResourceLocation
The field for themetadataLocation
record component.private final Map
<PackResources, IoSupplier<InputStream>> The field for themetaSources
record component. -
Constructor Summary
ConstructorDescriptionEntryStack
(ResourceLocation p_251350_) EntryStack
(ResourceLocation fileLocation, ResourceLocation metadataLocation, List<FallbackResourceManager.ResourceWithSource> fileSources, Map<PackResources, IoSupplier<InputStream>> metaSources) Creates an instance of aEntryStack
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefileLocation
record component.Returns the value of thefileSources
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of themetadataLocation
record component.Returns the value of themetaSources
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
fileLocation
The field for thefileLocation
record component. -
metadataLocation
The field for themetadataLocation
record component. -
fileSources
The field for thefileSources
record component. -
metaSources
The field for themetaSources
record component.
-
-
Constructor Details
-
EntryStack
EntryStack(ResourceLocation p_251350_) -
EntryStack
EntryStack(ResourceLocation fileLocation, ResourceLocation metadataLocation, List<FallbackResourceManager.ResourceWithSource> fileSources, Map<PackResources, IoSupplier<InputStream>> metaSources) Creates an instance of aEntryStack
record class.- Parameters:
fileLocation
- the value for thefileLocation
record componentmetadataLocation
- the value for themetadataLocation
record componentfileSources
- the value for thefileSources
record componentmetaSources
- the value for themetaSources
record 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 thefileLocation
record component.- Returns:
- the value of the
fileLocation
record component
-
metadataLocation
Returns the value of themetadataLocation
record component.- Returns:
- the value of the
metadataLocation
record component
-
fileSources
Returns the value of thefileSources
record component.- Returns:
- the value of the
fileSources
record component
-
metaSources
Returns the value of themetaSources
record component.- Returns:
- the value of the
metaSources
record component
-