Package net.minecraft.resources
Class FallbackResourceManager
java.lang.Object
net.minecraft.resources.FallbackResourceManager
- All Implemented Interfaces:
IResourceManager
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
Nested classes/interfaces inherited from interface net.minecraft.resources.IResourceManager
IResourceManager.Instance
-
Field Summary
Modifier and TypeFieldDescriptionfinal List<IResourcePack>
private static final org.apache.logging.log4j.Logger
private final String
private final ResourcePackType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(IResourcePack p_199021_1_) (package private) static ResourceLocation
getMetadataLocation
(ResourceLocation p_199020_0_) getResource
(ResourceLocation p_199002_1_) getResources
(ResourceLocation p_199004_1_) protected InputStream
getWrappedResource
(ResourceLocation p_199019_1_, IResourcePack p_199019_2_) boolean
hasResource
(ResourceLocation p_219533_1_) private boolean
isValidLocation
(ResourceLocation p_219541_1_) listResources
(String p_199003_1_, Predicate<String> p_199003_2_) private void
validateLocation
(ResourceLocation p_199022_1_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
fallbacks
-
type
-
namespace
-
-
Constructor Details
-
FallbackResourceManager
-
-
Method Details
-
add
-
getNamespaces
- Specified by:
getNamespaces
in interfaceIResourceManager
-
getResource
- Specified by:
getResource
in interfaceIResourceManager
- Throws:
IOException
-
hasResource
- Specified by:
hasResource
in interfaceIResourceManager
-
getWrappedResource
protected InputStream getWrappedResource(ResourceLocation p_199019_1_, IResourcePack p_199019_2_) throws IOException - Throws:
IOException
-
validateLocation
- Throws:
IOException
-
isValidLocation
-
getResources
- Specified by:
getResources
in interfaceIResourceManager
- Throws:
IOException
-
listResources
public Collection<ResourceLocation> listResources(String p_199003_1_, Predicate<String> p_199003_2_) - Specified by:
listResources
in interfaceIResourceManager
-
listPacks
- Specified by:
listPacks
in interfaceIResourceManager
-
getMetadataLocation
-