Class SimpleReloadableResourceManager
java.lang.Object
net.minecraft.server.packs.resources.SimpleReloadableResourceManager
- All Implemented Interfaces:
AutoCloseable
,ReloadableResourceManager
,ResourceManager
,ResourceProvider
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
static class
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.ResourceManager
ResourceManager.Empty
-
Field Summary
Modifier and TypeFieldDescriptionprivate List<PreparableReloadListener>
private static org.apache.logging.log4j.Logger
private Map<String,FallbackResourceManager>
private List<PackResources>
private PackType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add(PackResources p_10881_)
private void
clear()
void
close()
createReload(Executor p_143947_, Executor p_143948_, CompletableFuture<Unit> p_143949_, List<PackResources> p_143950_)
getResource(ResourceLocation p_10895_)
getResources(ResourceLocation p_10906_)
boolean
hasResource(ResourceLocation p_10903_)
listResources(String p_10885_, Predicate<String> p_10886_)
void
registerReloadListener(PreparableReloadListener p_10883_)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.server.packs.resources.ReloadableResourceManager
reload
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
namespacedPacks
-
listeners
-
namespaces
-
packs
-
type
-
-
Constructor Details
-
SimpleReloadableResourceManager
-
-
Method Details
-
add
-
getNamespaces
- Specified by:
getNamespaces
in interfaceResourceManager
-
getResource
- Specified by:
getResource
in interfaceResourceProvider
- Throws:
IOException
-
hasResource
- Specified by:
hasResource
in interfaceResourceManager
-
getResources
- Specified by:
getResources
in interfaceResourceManager
- Throws:
IOException
-
listResources
- Specified by:
listResources
in interfaceResourceManager
-
clear
private void clear() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceReloadableResourceManager
-
registerReloadListener
- Specified by:
registerReloadListener
in interfaceReloadableResourceManager
-
createReload
public ReloadInstance createReload(Executor p_143947_, Executor p_143948_, CompletableFuture<Unit> p_143949_, List<PackResources> p_143950_)- Specified by:
createReload
in interfaceReloadableResourceManager
-
listPacks
- Specified by:
listPacks
in interfaceResourceManager
-