Package net.minecraft.server
Class ServerFunctionLibrary
java.lang.Object
net.minecraft.server.ServerFunctionLibrary
- All Implemented Interfaces:
PreparableReloadListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.mojang.brigadier.CommandDispatcher<CommandSourceStack> private final intprivate Map<ResourceLocation, CommandFunction<CommandSourceStack>> private static final FileToIdConverterprivate static final org.slf4j.Loggerprivate final TagLoader<CommandFunction<CommandSourceStack>> static final ResourceKey<Registry<CommandFunction<CommandSourceStack>>> -
Constructor Summary
ConstructorsConstructorDescriptionServerFunctionLibrary(int functionCompilationLevel, com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher) -
Method Summary
Modifier and TypeMethodDescriptiongetFunction(ResourceLocation location) getTag(ResourceLocation location) 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
-
LOGGER
private static final org.slf4j.Logger LOGGER -
TYPE_KEY
-
LISTER
-
functions
-
tagsLoader
-
tags
-
functionCompilationLevel
private final int functionCompilationLevel -
dispatcher
-
-
Constructor Details
-
ServerFunctionLibrary
public ServerFunctionLibrary(int functionCompilationLevel, com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher)
-
-
Method Details
-
getFunction
-
getFunctions
-
getTag
-
getAvailableTags
-
reload
public CompletableFuture<Void> reload(PreparableReloadListener.PreparationBarrier stage, ResourceManager resourceManager, ProfilerFiller preparationsProfiler, ProfilerFiller reloadProfiler, Executor backgroundExecutor, Executor gameExecutor) - Specified by:
reloadin interfacePreparableReloadListener
-
readLines
-