Interface ReloadableResourceManager
- All Superinterfaces:
AutoCloseable,ResourceManager,ResourceProvider
- All Known Implementing Classes:
SimpleReloadableResourceManager
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.ResourceManager
ResourceManager.Empty -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()createReload(Executor p_143930_, Executor p_143931_, CompletableFuture<Unit> p_143932_, List<PackResources> p_143933_)voidregisterReloadListener(PreparableReloadListener p_10714_)default CompletableFuture<Unit>reload(Executor p_10716_, Executor p_10717_, List<PackResources> p_10718_, CompletableFuture<Unit> p_10719_)Methods inherited from interface net.minecraft.server.packs.resources.ResourceManager
getNamespaces, getResources, hasResource, listPacks, listResourcesMethods inherited from interface net.minecraft.server.packs.resources.ResourceProvider
getResource
-
Method Details
-
reload
default CompletableFuture<Unit> reload(Executor p_10716_, Executor p_10717_, List<PackResources> p_10718_, CompletableFuture<Unit> p_10719_) -
createReload
ReloadInstance createReload(Executor p_143930_, Executor p_143931_, CompletableFuture<Unit> p_143932_, List<PackResources> p_143933_) -
registerReloadListener
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-