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 SummaryFieldsModifier and TypeFieldDescriptionprivate final ResourceLocationThe field for thefileLocationrecord component.private final List<FallbackResourceManager.ResourceWithSource>The field for thefileSourcesrecord component.private final ResourceLocationThe field for themetadataLocationrecord component.private final Map<PackResources,IoSupplier<InputStream>> The field for themetaSourcesrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionEntryStack(ResourceLocation p_251350_) EntryStack(ResourceLocation fileLocation, ResourceLocation metadataLocation, List<FallbackResourceManager.ResourceWithSource> fileSources, Map<PackResources, IoSupplier<InputStream>> metaSources) Creates an instance of aEntryStackrecord class.
- 
Method SummaryModifier 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- 
fileLocationThe field for thefileLocationrecord component.
- 
metadataLocationThe field for themetadataLocationrecord component.
- 
fileSourcesThe field for thefileSourcesrecord component.
- 
metaSourcesThe field for themetaSourcesrecord component.
 
- 
- 
Constructor Details- 
EntryStackEntryStack(ResourceLocation p_251350_) 
- 
EntryStackEntryStack(ResourceLocation fileLocation, ResourceLocation metadataLocation, List<FallbackResourceManager.ResourceWithSource> fileSources, Map<PackResources, IoSupplier<InputStream>> metaSources) Creates an instance of aEntryStackrecord class.- Parameters:
- fileLocation- the value for the- fileLocationrecord component
- metadataLocation- the value for the- metadataLocationrecord component
- fileSources- the value for the- fileSourcesrecord component
- metaSources- the value for the- metaSourcesrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
fileLocationReturns the value of thefileLocationrecord component.- Returns:
- the value of the fileLocationrecord component
 
- 
metadataLocationReturns the value of themetadataLocationrecord component.- Returns:
- the value of the metadataLocationrecord component
 
- 
fileSourcesReturns the value of thefileSourcesrecord component.- Returns:
- the value of the fileSourcesrecord component
 
- 
metaSourcesReturns the value of themetaSourcesrecord component.- Returns:
- the value of the metaSourcesrecord component
 
 
-