Modifier and Type | Class and Description |
---|---|
static class |
FunctionManager.QueuedCommand |
Modifier and Type | Field and Description |
---|---|
private java.util.ArrayDeque<FunctionManager.QueuedCommand> |
commandQueue |
private java.lang.String |
currentGameLoopFunctionId |
private java.io.File |
functionDir |
private java.util.Map<ResourceLocation,FunctionObject> |
functions |
private FunctionObject |
gameLoopFunction |
private ICommandSender |
gameLoopFunctionSender |
private boolean |
isExecuting |
private static org.apache.logging.log4j.Logger |
LOGGER |
private MinecraftServer |
server |
Constructor and Description |
---|
FunctionManager(java.io.File functionDirIn,
MinecraftServer serverIn) |
Modifier and Type | Method and Description |
---|---|
int |
execute(FunctionObject function,
ICommandSender sender) |
ICommandManager |
getCommandManager() |
FunctionObject |
getFunction(ResourceLocation id) |
java.util.Map<ResourceLocation,FunctionObject> |
getFunctions() |
int |
getMaxCommandChainLength() |
private void |
loadFunctions() |
void |
reload() |
void |
update() |
private static final org.apache.logging.log4j.Logger LOGGER
private final java.io.File functionDir
private final MinecraftServer server
private final java.util.Map<ResourceLocation,FunctionObject> functions
private java.lang.String currentGameLoopFunctionId
private FunctionObject gameLoopFunction
private final java.util.ArrayDeque<FunctionManager.QueuedCommand> commandQueue
private boolean isExecuting
private final ICommandSender gameLoopFunctionSender
public FunctionManager(@Nullable java.io.File functionDirIn, MinecraftServer serverIn)
@Nullable public FunctionObject getFunction(ResourceLocation id)
public ICommandManager getCommandManager()
public int getMaxCommandChainLength()
public java.util.Map<ResourceLocation,FunctionObject> getFunctions()
public int execute(FunctionObject function, ICommandSender sender)
public void reload()
private void loadFunctions()