Class ReloadableResourceManager
java.lang.Object
net.minecraft.server.packs.resources.ReloadableResourceManager
- All Implemented Interfaces:
AutoCloseable
,ResourceManager
,ResourceProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.ResourceManager
ResourceManager.Empty
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List
<PreparableReloadListener> private static final org.slf4j.Logger
private CloseableResourceManager
private final PackType
Fields inherited from interface net.minecraft.server.packs.resources.ResourceProvider
EMPTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
createReload
(Executor p_143930_, Executor p_143931_, CompletableFuture<Unit> p_143932_, List<PackResources> p_143933_) getResource
(ResourceLocation p_215494_) getResourceStack
(ResourceLocation p_215486_) listResources
(String p_215488_, Predicate<ResourceLocation> p_215489_) listResourceStacks
(String p_215491_, Predicate<ResourceLocation> p_215492_) void
void
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.ResourceProvider
getResourceOrThrow, open, openAsReader
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
resources
-
listeners
-
type
-
-
Constructor Details
-
ReloadableResourceManager
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
registerReloadListener
-
createReload
public ReloadInstance createReload(Executor p_143930_, Executor p_143931_, CompletableFuture<Unit> p_143932_, List<PackResources> p_143933_) -
getResource
- Specified by:
getResource
in interfaceResourceProvider
-
getNamespaces
- Specified by:
getNamespaces
in interfaceResourceManager
-
getResourceStack
- Specified by:
getResourceStack
in interfaceResourceManager
-
listResources
public Map<ResourceLocation,Resource> listResources(String p_215488_, Predicate<ResourceLocation> p_215489_) - Specified by:
listResources
in interfaceResourceManager
-
listResourceStacks
public Map<ResourceLocation,List<Resource>> listResourceStacks(String p_215491_, Predicate<ResourceLocation> p_215492_) - Specified by:
listResourceStacks
in interfaceResourceManager
-
listPacks
- Specified by:
listPacks
in interfaceResourceManager
-
registerReloadListenerIfNotPresent
-