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 int
private Map
<ResourceLocation, CommandFunction<CommandSourceStack>> private static final FileToIdConverter
private static final org.slf4j.Logger
private final TagLoader
<CommandFunction<CommandSourceStack>> static final ResourceKey
<Registry<CommandFunction<CommandSourceStack>>> -
Constructor Summary
ConstructorsConstructorDescriptionServerFunctionLibrary
(int p_136053_, com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_136054_) -
Method Summary
Modifier and TypeMethodDescriptiongetFunction
(ResourceLocation p_136090_) getTag
(ResourceLocation pLocation) reload
(PreparableReloadListener.PreparationBarrier pStage, ResourceManager pResourceManager, ProfilerFiller pPreparationsProfiler, ProfilerFiller pReloadProfiler, Executor pBackgroundExecutor, Executor pGameExecutor) 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.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 p_136053_, com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_136054_)
-
-
Method Details
-
getFunction
-
getFunctions
-
getTag
-
getAvailableTags
-
reload
public CompletableFuture<Void> reload(PreparableReloadListener.PreparationBarrier pStage, ResourceManager pResourceManager, ProfilerFiller pPreparationsProfiler, ProfilerFiller pReloadProfiler, Executor pBackgroundExecutor, Executor pGameExecutor) - Specified by:
reload
in interfacePreparableReloadListener
-
readLines
-