public class CommandFunctionManager extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CommandFunctionManager.Entry |
Modifier and Type | Field and Description |
---|---|
private ArrayDeque<CommandFunctionManager.Entry> |
chain |
private boolean |
executing |
private FunctionLoader |
field_25333 |
private static Identifier |
LOAD_FUNCTION |
private boolean |
needToRunLoadFunctions |
private List<CommandFunctionManager.Entry> |
pending |
private MinecraftServer |
server |
private static Identifier |
TICK_FUNCTION |
private List<CommandFunction> |
tickFunctions |
Constructor and Description |
---|
CommandFunctionManager(MinecraftServer minecraftServer,
FunctionLoader functionLoader) |
Modifier and Type | Method and Description |
---|---|
int |
execute(CommandFunction function,
ServerCommandSource source) |
com.mojang.brigadier.CommandDispatcher<ServerCommandSource> |
getDispatcher() |
Optional<CommandFunction> |
getFunction(Identifier id) |
int |
getMaxCommandChainLength() |
ServerCommandSource |
getTaggedFunctionSource() |
private void |
method_29460(Collection<CommandFunction> collection,
Identifier identifier) |
void |
method_29461(FunctionLoader functionLoader) |
Tag<CommandFunction> |
method_29462(Identifier identifier) |
Iterable<Identifier> |
method_29463() |
Iterable<Identifier> |
method_29464() |
private void |
method_29773(FunctionLoader functionLoader) |
void |
tick() |
private static final Identifier TICK_FUNCTION
private static final Identifier LOAD_FUNCTION
private final MinecraftServer server
private boolean executing
private final ArrayDeque<CommandFunctionManager.Entry> chain
private final List<CommandFunctionManager.Entry> pending
private final List<CommandFunction> tickFunctions
private boolean needToRunLoadFunctions
private FunctionLoader field_25333
public CommandFunctionManager(MinecraftServer minecraftServer, FunctionLoader functionLoader)
public int getMaxCommandChainLength()
public com.mojang.brigadier.CommandDispatcher<ServerCommandSource> getDispatcher()
public void tick()
private void method_29460(Collection<CommandFunction> collection, Identifier identifier)
public int execute(CommandFunction function, ServerCommandSource source)
public void method_29461(FunctionLoader functionLoader)
private void method_29773(FunctionLoader functionLoader)
public ServerCommandSource getTaggedFunctionSource()
public Optional<CommandFunction> getFunction(Identifier id)
public Tag<CommandFunction> method_29462(Identifier identifier)
public Iterable<Identifier> method_29463()
public Iterable<Identifier> method_29464()