Package net.minecraft.advancements
Class FunctionManager
- java.lang.Object
-
- net.minecraft.advancements.FunctionManager
-
public class FunctionManager extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFunctionManager.QueuedCommand
-
Field Summary
Fields Modifier and Type Field Description private java.util.ArrayDeque<FunctionManager.QueuedCommand>commandQueueprivate booleanisInFunctionprivate FunctionReloaderlibraryprivate static ResourceLocationLOAD_FUNCTION_TAGprivate java.util.List<FunctionManager.QueuedCommand>nestedCallsprivate booleanpostReloadprivate MinecraftServerserverprivate static ResourceLocationTICK_FUNCTION_TAGprivate java.util.List<FunctionObject>ticking
-
Constructor Summary
Constructors Constructor Description FunctionManager(MinecraftServer p_i232597_1_, FunctionReloader p_i232597_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intexecute(FunctionObject p_195447_1_, CommandSource p_195447_2_)private voidexecuteTagFunctions(java.util.Collection<FunctionObject> p_240945_1_, ResourceLocation p_240945_2_)java.util.Optional<FunctionObject>get(ResourceLocation p_215361_1_)intgetCommandLimit()com.mojang.brigadier.CommandDispatcher<CommandSource>getDispatcher()java.lang.Iterable<ResourceLocation>getFunctionNames()CommandSourcegetGameLoopSender()ITag<FunctionObject>getTag(ResourceLocation p_240947_1_)java.lang.Iterable<ResourceLocation>getTagNames()private voidpostReload(FunctionReloader p_240948_1_)voidreplaceLibrary(FunctionReloader p_240946_1_)voidtick()
-
-
-
Field Detail
-
TICK_FUNCTION_TAG
private static final ResourceLocation TICK_FUNCTION_TAG
-
LOAD_FUNCTION_TAG
private static final ResourceLocation LOAD_FUNCTION_TAG
-
server
private final MinecraftServer server
-
isInFunction
private boolean isInFunction
-
commandQueue
private final java.util.ArrayDeque<FunctionManager.QueuedCommand> commandQueue
-
nestedCalls
private final java.util.List<FunctionManager.QueuedCommand> nestedCalls
-
ticking
private final java.util.List<FunctionObject> ticking
-
postReload
private boolean postReload
-
library
private FunctionReloader library
-
-
Constructor Detail
-
FunctionManager
public FunctionManager(MinecraftServer p_i232597_1_, FunctionReloader p_i232597_2_)
-
-
Method Detail
-
getCommandLimit
public int getCommandLimit()
-
getDispatcher
public com.mojang.brigadier.CommandDispatcher<CommandSource> getDispatcher()
-
tick
public void tick()
-
executeTagFunctions
private void executeTagFunctions(java.util.Collection<FunctionObject> p_240945_1_, ResourceLocation p_240945_2_)
-
execute
public int execute(FunctionObject p_195447_1_, CommandSource p_195447_2_)
-
replaceLibrary
public void replaceLibrary(FunctionReloader p_240946_1_)
-
postReload
private void postReload(FunctionReloader p_240948_1_)
-
getGameLoopSender
public CommandSource getGameLoopSender()
-
get
public java.util.Optional<FunctionObject> get(ResourceLocation p_215361_1_)
-
getTag
public ITag<FunctionObject> getTag(ResourceLocation p_240947_1_)
-
getFunctionNames
public java.lang.Iterable<ResourceLocation> getFunctionNames()
-
getTagNames
public java.lang.Iterable<ResourceLocation> getTagNames()
-
-