public class CommandFunction extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CommandFunction.CommandElement |
static interface |
CommandFunction.Element |
static class |
CommandFunction.FunctionElement |
static class |
CommandFunction.LazyContainer |
Modifier and Type | Field and Description |
---|---|
private CommandFunction.Element[] |
elements |
private Identifier |
id |
Constructor and Description |
---|
CommandFunction(Identifier id,
CommandFunction.Element[] elements) |
Modifier and Type | Method and Description |
---|---|
static CommandFunction |
create(Identifier id,
com.mojang.brigadier.CommandDispatcher<ServerCommandSource> commandDispatcher,
ServerCommandSource serverCommandSource,
List<String> list) |
CommandFunction.Element[] |
getElements() |
Identifier |
getId() |
private final CommandFunction.Element[] elements
private final Identifier id
public CommandFunction(Identifier id, CommandFunction.Element[] elements)
public Identifier getId()
public CommandFunction.Element[] getElements()
public static CommandFunction create(Identifier id, com.mojang.brigadier.CommandDispatcher<ServerCommandSource> commandDispatcher, ServerCommandSource serverCommandSource, List<String> list)