Package net.minecraft.resources
Class FallbackResourceManager
java.lang.Object
net.minecraft.resources.FallbackResourceManager
- All Implemented Interfaces:
IResourceManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classNested classes/interfaces inherited from interface net.minecraft.resources.IResourceManager
IResourceManager.Instance -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal List<IResourcePack>private static final org.apache.logging.log4j.Loggerprivate final Stringprivate final ResourcePackType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(IResourcePack p_199021_1_) (package private) static ResourceLocationgetMetadataLocation(ResourceLocation p_199020_0_) getResource(ResourceLocation p_199002_1_) getResources(ResourceLocation p_199004_1_) protected InputStreamgetWrappedResource(ResourceLocation p_199019_1_, IResourcePack p_199019_2_) booleanhasResource(ResourceLocation p_219533_1_) private booleanisValidLocation(ResourceLocation p_219541_1_) listResources(String p_199003_1_, Predicate<String> p_199003_2_) private voidvalidateLocation(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:
getNamespacesin interfaceIResourceManager
-
getResource
- Specified by:
getResourcein interfaceIResourceManager- Throws:
IOException
-
hasResource
- Specified by:
hasResourcein interfaceIResourceManager
-
getWrappedResource
protected InputStream getWrappedResource(ResourceLocation p_199019_1_, IResourcePack p_199019_2_) throws IOException - Throws:
IOException
-
validateLocation
- Throws:
IOException
-
isValidLocation
-
getResources
- Specified by:
getResourcesin interfaceIResourceManager- Throws:
IOException
-
listResources
public Collection<ResourceLocation> listResources(String p_199003_1_, Predicate<String> p_199003_2_) - Specified by:
listResourcesin interfaceIResourceManager
-
listPacks
- Specified by:
listPacksin interfaceIResourceManager
-
getMetadataLocation
-