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 com.mojang.brigadier.CommandDispatcher<CommandSourceStack>private static Stringprivate intprivate Map<ResourceLocation,CommandFunction>private static org.apache.logging.log4j.Loggerprivate static intprivate static intprivate TagCollection<CommandFunction>private TagLoader<CommandFunction> -
Constructor Summary
ConstructorsConstructorDescriptionServerFunctionLibrary(int p_136053_, com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_136054_) -
Method Summary
Modifier and TypeMethodDescriptiongetFunction(ResourceLocation p_136090_)getTag(ResourceLocation p_136098_)getTags()readLines(ResourceManager p_136070_, ResourceLocation p_136071_)reload(PreparableReloadListener.PreparationBarrier p_136057_, ResourceManager p_136058_, ProfilerFiller p_136059_, ProfilerFiller p_136060_, Executor p_136061_, Executor p_136062_)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.apache.logging.log4j.Logger LOGGER -
FILE_EXTENSION
- See Also:
- Constant Field Values
-
PATH_PREFIX_LENGTH
private static final int PATH_PREFIX_LENGTH -
PATH_SUFFIX_LENGTH
private static final int PATH_SUFFIX_LENGTH -
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
-
getTags
-
getTag
-
reload
public CompletableFuture<Void> reload(PreparableReloadListener.PreparationBarrier p_136057_, ResourceManager p_136058_, ProfilerFiller p_136059_, ProfilerFiller p_136060_, Executor p_136061_, Executor p_136062_)- Specified by:
reloadin interfacePreparableReloadListener
-
readLines
-