public class FallbackResourceManager extends java.lang.Object implements IResourceManager
Modifier and Type | Class and Description |
---|---|
(package private) static class |
FallbackResourceManager.InputStreamLeakedResourceLogger |
Modifier and Type | Field and Description |
---|---|
private MetadataSerializer |
frmMetadataSerializer |
private static org.apache.logging.log4j.Logger |
LOGGER |
protected java.util.List<IResourcePack> |
resourcePacks |
Constructor and Description |
---|
FallbackResourceManager(MetadataSerializer frmMetadataSerializerIn) |
Modifier and Type | Method and Description |
---|---|
void |
addResourcePack(IResourcePack resourcePack) |
private void |
checkResourcePath(ResourceLocation p_188552_1_) |
java.util.List<IResource> |
getAllResources(ResourceLocation location) |
protected java.io.InputStream |
getInputStream(ResourceLocation location,
IResourcePack resourcePack) |
(package private) static ResourceLocation |
getLocationMcmeta(ResourceLocation location) |
IResource |
getResource(ResourceLocation location) |
java.util.Set<java.lang.String> |
getResourceDomains() |
private static final org.apache.logging.log4j.Logger LOGGER
protected final java.util.List<IResourcePack> resourcePacks
private final MetadataSerializer frmMetadataSerializer
public FallbackResourceManager(MetadataSerializer frmMetadataSerializerIn)
public void addResourcePack(IResourcePack resourcePack)
public java.util.Set<java.lang.String> getResourceDomains()
getResourceDomains
in interface IResourceManager
public IResource getResource(ResourceLocation location) throws java.io.IOException
getResource
in interface IResourceManager
java.io.IOException
protected java.io.InputStream getInputStream(ResourceLocation location, IResourcePack resourcePack) throws java.io.IOException
java.io.IOException
private void checkResourcePath(ResourceLocation p_188552_1_) throws java.io.IOException
java.io.IOException
public java.util.List<IResource> getAllResources(ResourceLocation location) throws java.io.IOException
getAllResources
in interface IResourceManager
java.io.IOException
static ResourceLocation getLocationMcmeta(ResourceLocation location)