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
-
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_203833_) getResources
(ResourceLocation p_203831_) boolean
hasResource
(ResourceLocation p_203828_) listResources
(String p_203823_, Predicate<String> p_203824_) void
void
-
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
- Throws:
IOException
-
getNamespaces
- Specified by:
getNamespaces
in interfaceResourceManager
-
hasResource
- Specified by:
hasResource
in interfaceResourceManager
-
getResources
- Specified by:
getResources
in interfaceResourceManager
- Throws:
IOException
-
listResources
- Specified by:
listResources
in interfaceResourceManager
-
listPacks
- Specified by:
listPacks
in interfaceResourceManager
-
registerReloadListenerIfNotPresent
-