public class SimpleReloadableResourceManager extends java.lang.Object implements IReloadableResourceManager
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,FallbackResourceManager> |
domainResourceManagers |
private static com.google.common.base.Joiner |
JOINER_RESOURCE_PACKS |
private static org.apache.logging.log4j.Logger |
LOGGER |
private java.util.List<IResourceManagerReloadListener> |
reloadListeners |
private MetadataSerializer |
rmMetadataSerializer |
private java.util.Set<java.lang.String> |
setResourceDomains |
Constructor and Description |
---|
SimpleReloadableResourceManager(MetadataSerializer rmMetadataSerializerIn) |
Modifier and Type | Method and Description |
---|---|
private void |
clearResources() |
java.util.List<IResource> |
getAllResources(ResourceLocation location) |
IResource |
getResource(ResourceLocation location) |
java.util.Set<java.lang.String> |
getResourceDomains() |
private void |
notifyReloadListeners() |
void |
registerReloadListener(IResourceManagerReloadListener reloadListener) |
void |
reloadResourcePack(IResourcePack resourcePack) |
void |
reloadResources(java.util.List<IResourcePack> resourcesPacksList) |
private static final org.apache.logging.log4j.Logger LOGGER
private static final com.google.common.base.Joiner JOINER_RESOURCE_PACKS
private final java.util.Map<java.lang.String,FallbackResourceManager> domainResourceManagers
private final java.util.List<IResourceManagerReloadListener> reloadListeners
private final java.util.Set<java.lang.String> setResourceDomains
private final MetadataSerializer rmMetadataSerializer
public SimpleReloadableResourceManager(MetadataSerializer rmMetadataSerializerIn)
public void reloadResourcePack(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
public java.util.List<IResource> getAllResources(ResourceLocation location) throws java.io.IOException
getAllResources
in interface IResourceManager
java.io.IOException
private void clearResources()
public void reloadResources(java.util.List<IResourcePack> resourcesPacksList)
reloadResources
in interface IReloadableResourceManager
public void registerReloadListener(IResourceManagerReloadListener reloadListener)
registerReloadListener
in interface IReloadableResourceManager
private void notifyReloadListeners()