public class FallbackResourceManager extends java.lang.Object implements IResourceManager
Modifier and Type | Class and Description |
---|---|
(package private) static class |
FallbackResourceManager.LeakComplainerInputStream |
Modifier and Type | Field and Description |
---|---|
private static org.apache.logging.log4j.Logger |
LOGGER |
private java.lang.String |
namespace |
java.util.List<IResourcePack> |
resourcePacks |
private ResourcePackType |
type |
Constructor and Description |
---|
FallbackResourceManager(ResourcePackType p_i226096_1_,
java.lang.String p_i226096_2_) |
Modifier and Type | Method and Description |
---|---|
void |
addResourcePack(IResourcePack resourcePack) |
private void |
checkResourcePath(ResourceLocation location) |
private boolean |
func_219541_f(ResourceLocation p_219541_1_) |
java.util.Collection<ResourceLocation> |
getAllResourceLocations(java.lang.String pathIn,
java.util.function.Predicate<java.lang.String> filter) |
java.util.List<IResource> |
getAllResources(ResourceLocation resourceLocationIn) |
protected java.io.InputStream |
getInputStream(ResourceLocation location,
IResourcePack resourcePack) |
(package private) static ResourceLocation |
getLocationMcmeta(ResourceLocation location) |
IResource |
getResource(ResourceLocation resourceLocationIn) |
java.util.Set<java.lang.String> |
getResourceNamespaces() |
boolean |
hasResource(ResourceLocation p_219533_1_) |
private static final org.apache.logging.log4j.Logger LOGGER
public final java.util.List<IResourcePack> resourcePacks
private final ResourcePackType type
private final java.lang.String namespace
public FallbackResourceManager(ResourcePackType p_i226096_1_, java.lang.String p_i226096_2_)
public void addResourcePack(IResourcePack resourcePack)
public java.util.Set<java.lang.String> getResourceNamespaces()
getResourceNamespaces
in interface IResourceManager
public IResource getResource(ResourceLocation resourceLocationIn) throws java.io.IOException
getResource
in interface IResourceManager
java.io.IOException
public boolean hasResource(ResourceLocation p_219533_1_)
hasResource
in interface IResourceManager
protected java.io.InputStream getInputStream(ResourceLocation location, IResourcePack resourcePack) throws java.io.IOException
java.io.IOException
private void checkResourcePath(ResourceLocation location) throws java.io.IOException
java.io.IOException
private boolean func_219541_f(ResourceLocation p_219541_1_)
public java.util.List<IResource> getAllResources(ResourceLocation resourceLocationIn) throws java.io.IOException
getAllResources
in interface IResourceManager
java.io.IOException
public java.util.Collection<ResourceLocation> getAllResourceLocations(java.lang.String pathIn, java.util.function.Predicate<java.lang.String> filter)
getAllResourceLocations
in interface IResourceManager
static ResourceLocation getLocationMcmeta(ResourceLocation location)