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 class
FunctionManager.QueuedCommand
-
Field Summary
Fields Modifier and Type Field Description private java.util.ArrayDeque<FunctionManager.QueuedCommand>
commandQueue
private boolean
isInFunction
private FunctionReloader
library
private static ResourceLocation
LOAD_FUNCTION_TAG
private java.util.List<FunctionManager.QueuedCommand>
nestedCalls
private boolean
postReload
private MinecraftServer
server
private static ResourceLocation
TICK_FUNCTION_TAG
private 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 int
execute(FunctionObject p_195447_1_, CommandSource p_195447_2_)
private void
executeTagFunctions(java.util.Collection<FunctionObject> p_240945_1_, ResourceLocation p_240945_2_)
java.util.Optional<FunctionObject>
get(ResourceLocation p_215361_1_)
int
getCommandLimit()
com.mojang.brigadier.CommandDispatcher<CommandSource>
getDispatcher()
java.lang.Iterable<ResourceLocation>
getFunctionNames()
CommandSource
getGameLoopSender()
ITag<FunctionObject>
getTag(ResourceLocation p_240947_1_)
java.lang.Iterable<ResourceLocation>
getTagNames()
private void
postReload(FunctionReloader p_240948_1_)
void
replaceLibrary(FunctionReloader p_240946_1_)
void
tick()
-
-
-
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()
-
-