Class FallbackResourceManager
java.lang.Object
net.minecraft.server.packs.resources.FallbackResourceManager
- All Implemented Interfaces:
- ResourceManager,- ResourceProvider
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescription(package private) static final record(package private) static class(package private) static final record(package private) static final recordNested classes/interfaces inherited from interface net.minecraft.server.packs.resources.ResourceManagerResourceManager.Empty
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate static voidapplyPackFiltersToExistingResources(FallbackResourceManager.PackEntry p_215393_, Map<ResourceLocation, FallbackResourceManager.EntryStack> p_215394_) private static IoSupplier<ResourceMetadata>convertToMetadata(IoSupplier<InputStream> p_250827_) private static ResourcecreateResource(PackResources p_249946_, ResourceLocation p_250632_, IoSupplier<InputStream> p_250514_, IoSupplier<ResourceMetadata> p_251676_) private IoSupplier<ResourceMetadata>createStackMetadataFinder(ResourceLocation p_215369_, int p_215370_) (package private) static ResourceLocationgetMetadataLocation(ResourceLocation p_10625_) getResource(ResourceLocation p_215419_) private static ResourceLocationgetResourceLocationFromMetadata(ResourceLocation p_249669_) getResourceStack(ResourceLocation p_215367_) private static booleanisMetadata(ResourceLocation p_249381_) private voidlistPackResources(FallbackResourceManager.PackEntry p_215388_, String p_215389_, Predicate<ResourceLocation> p_215390_, Map<ResourceLocation, FallbackResourceManager.EntryStack> p_215391_) listResources(String p_215413_, Predicate<ResourceLocation> p_215414_) listResourceStacks(String p_215416_, Predicate<ResourceLocation> p_215417_) private static ResourceMetadataparseMetadata(IoSupplier<InputStream> p_250103_) voidpush(PackResources p_215378_) voidpush(PackResources p_215383_, Predicate<ResourceLocation> p_215384_) voidpushFilterOnly(String p_215400_, Predicate<ResourceLocation> p_215401_) private voidpushInternal(String p_215396_, PackResources p_215397_, Predicate<ResourceLocation> p_215398_) private static IoSupplier<InputStream>wrapForDebug(ResourceLocation p_248639_, PackResources p_251740_, IoSupplier<InputStream> p_249116_) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.server.packs.resources.ResourceProvidergetResourceOrThrow, open, openAsReader
- 
Field Details- 
LOGGERstatic final org.slf4j.Logger LOGGER
- 
fallbacks
- 
type
- 
namespace
 
- 
- 
Constructor Details- 
FallbackResourceManager
 
- 
- 
Method Details- 
push
- 
push
- 
pushFilterOnly
- 
pushInternalprivate void pushInternal(String p_215396_, @Nullable PackResources p_215397_, @Nullable Predicate<ResourceLocation> p_215398_) 
- 
getNamespaces- Specified by:
- getNamespacesin interface- ResourceManager
 
- 
getResource- Specified by:
- getResourcein interface- ResourceProvider
 
- 
createResourceprivate static Resource createResource(PackResources p_249946_, ResourceLocation p_250632_, IoSupplier<InputStream> p_250514_, IoSupplier<ResourceMetadata> p_251676_) 
- 
wrapForDebugprivate static IoSupplier<InputStream> wrapForDebug(ResourceLocation p_248639_, PackResources p_251740_, IoSupplier<InputStream> p_249116_) 
- 
getResourceStack- Specified by:
- getResourceStackin interface- ResourceManager
 
- 
isMetadata
- 
getResourceLocationFromMetadata
- 
getMetadataLocation
- 
listResourcespublic Map<ResourceLocation,Resource> listResources(String p_215413_, Predicate<ResourceLocation> p_215414_) - Specified by:
- listResourcesin interface- ResourceManager
 
- 
createStackMetadataFinderprivate IoSupplier<ResourceMetadata> createStackMetadataFinder(ResourceLocation p_215369_, int p_215370_) 
- 
convertToMetadata
- 
parseMetadata- Throws:
- IOException
 
- 
applyPackFiltersToExistingResourcesprivate static void applyPackFiltersToExistingResources(FallbackResourceManager.PackEntry p_215393_, Map<ResourceLocation, FallbackResourceManager.EntryStack> p_215394_) 
- 
listPackResourcesprivate void listPackResources(FallbackResourceManager.PackEntry p_215388_, String p_215389_, Predicate<ResourceLocation> p_215390_, Map<ResourceLocation, FallbackResourceManager.EntryStack> p_215391_) 
- 
listResourceStackspublic Map<ResourceLocation,List<Resource>> listResourceStacks(String p_215416_, Predicate<ResourceLocation> p_215417_) - Specified by:
- listResourceStacksin interface- ResourceManager
 
- 
listPacks- Specified by:
- listPacksin interface- ResourceManager
 
 
-