Package net.minecraft.tags
Class TagManager
java.lang.Object
net.minecraft.tags.TagManager
- All Implemented Interfaces:
PreparableReloadListener
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RegistryAccessprivate List<TagManager.LoadResult<?>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate <T> CompletableFuture<TagManager.LoadResult<T>> createLoader(ResourceManager resourceManager, Executor backgroundExecutor, RegistryAccess.RegistryEntry<T> entry) reload(PreparableReloadListener.PreparationBarrier stage, ResourceManager resourceManager, ProfilerFiller preparationsProfiler, ProfilerFiller reloadProfiler, Executor backgroundExecutor, Executor gameExecutor) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
getName
-
Field Details
-
registryAccess
-
results
-
-
Constructor Details
-
TagManager
-
-
Method Details
-
getResult
-
reload
public CompletableFuture<Void> reload(PreparableReloadListener.PreparationBarrier stage, ResourceManager resourceManager, ProfilerFiller preparationsProfiler, ProfilerFiller reloadProfiler, Executor backgroundExecutor, Executor gameExecutor) - Specified by:
reloadin interfacePreparableReloadListener
-
createLoader
private <T> CompletableFuture<TagManager.LoadResult<T>> createLoader(ResourceManager resourceManager, Executor backgroundExecutor, RegistryAccess.RegistryEntry<T> entry)
-