Package net.minecraft.resources
Class SimpleReloadableResourceManager
java.lang.Object
net.minecraft.resources.SimpleReloadableResourceManager
- All Implemented Interfaces:
AutoCloseable
,IReloadableResourceManager
,IResourceManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
(package private) static class
Nested classes/interfaces inherited from interface net.minecraft.resources.IResourceManager
IResourceManager.Instance
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<IFutureReloadListener>
private static final org.apache.logging.log4j.Logger
private final Map<String,
FallbackResourceManager> private final List<IResourcePack>
private final List<IFutureReloadListener>
private final ResourcePackType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(IResourcePack p_199021_1_) private void
clear()
void
close()
createFullReload
(Executor p_219537_1_, Executor p_219537_2_, CompletableFuture<Unit> p_219537_3_, List<IResourcePack> p_219537_4_) protected IAsyncReloader
createReload
(Executor p_219538_1_, Executor p_219538_2_, List<IFutureReloadListener> p_219538_3_, CompletableFuture<Unit> p_219538_4_) getResource
(ResourceLocation p_199002_1_) getResources
(ResourceLocation p_199004_1_) boolean
hasResource
(ResourceLocation p_219533_1_) listResources
(String p_199003_1_, Predicate<String> p_199003_2_) void
registerReloadListener
(IFutureReloadListener p_219534_1_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.resources.IReloadableResourceManager
reload
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
namespacedPacks
-
listeners
-
recentlyRegistered
-
namespaces
-
packs
-
type
-
-
Constructor Details
-
SimpleReloadableResourceManager
-
-
Method Details
-
add
-
getNamespaces
- Specified by:
getNamespaces
in interfaceIResourceManager
-
getResource
- Specified by:
getResource
in interfaceIResourceManager
- Throws:
IOException
-
hasResource
- Specified by:
hasResource
in interfaceIResourceManager
-
getResources
- Specified by:
getResources
in interfaceIResourceManager
- Throws:
IOException
-
listResources
public Collection<ResourceLocation> listResources(String p_199003_1_, Predicate<String> p_199003_2_) - Specified by:
listResources
in interfaceIResourceManager
-
clear
private void clear() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceIReloadableResourceManager
-
registerReloadListener
- Specified by:
registerReloadListener
in interfaceIReloadableResourceManager
-
createReload
protected IAsyncReloader createReload(Executor p_219538_1_, Executor p_219538_2_, List<IFutureReloadListener> p_219538_3_, CompletableFuture<Unit> p_219538_4_) -
createFullReload
public IAsyncReloader createFullReload(Executor p_219537_1_, Executor p_219537_2_, CompletableFuture<Unit> p_219537_3_, List<IResourcePack> p_219537_4_) - Specified by:
createFullReload
in interfaceIReloadableResourceManager
-
listPacks
- Specified by:
listPacks
in interfaceIResourceManager
-