Class CommandDSL
-
- All Implemented Interfaces:
public final class CommandDSL
-
-
Field Summary
Fields Modifier and Type Field Description private List<Function1<CommandContext<CommandSourceStack>, Integer>>
beforeAll
private final CommandNode
node
-
Constructor Summary
Constructors Constructor Description CommandDSL(CommandDispatcher<CommandSourceStack> dispatcher, Integer permissionLevel, Function1<CommandDSL, Unit> block)
CommandDSL(CommandNode node)
-
Method Summary
Modifier and Type Method Description final List<Function1<CommandContext<CommandSourceStack>, Integer>>
getBeforeAll()
final Unit
setBeforeAll(List<Function1<CommandContext<CommandSourceStack>, Integer>> beforeAll)
final CommandNode
getNode()
final CommandDSL
beforeAll(Function1<CommandContext<CommandSourceStack>, Integer> func)
final CommandDSL
group(String template, Integer permissionLevel, ArgumentType<?> argTypes, Function1<CommandDSL, Unit> block)
final CommandDSL
add(String template, ArgumentType<?> types, Function1<CommandContext<CommandSourceStack>, Integer> execute)
final Unit
finish()
-
-
Constructor Detail
-
CommandDSL
CommandDSL(CommandDispatcher<CommandSourceStack> dispatcher, Integer permissionLevel, Function1<CommandDSL, Unit> block)
-
CommandDSL
CommandDSL(CommandNode node)
-
-
Method Detail
-
getBeforeAll
final List<Function1<CommandContext<CommandSourceStack>, Integer>> getBeforeAll()
-
setBeforeAll
final Unit setBeforeAll(List<Function1<CommandContext<CommandSourceStack>, Integer>> beforeAll)
-
getNode
final CommandNode getNode()
-
beforeAll
final CommandDSL beforeAll(Function1<CommandContext<CommandSourceStack>, Integer> func)
-
group
final CommandDSL group(String template, Integer permissionLevel, ArgumentType<?> argTypes, Function1<CommandDSL, Unit> block)
-
add
final CommandDSL add(String template, ArgumentType<?> types, Function1<CommandContext<CommandSourceStack>, Integer> execute)
-
-
-
-