Class CommandDSL
-
- All Implemented Interfaces:
public final class CommandDSL
-
-
Field Summary
Fields Modifier and Type Field Description private List<Function1<CommandContext<CommandSourceStack>, Integer>>beforeAllprivate final CommandNodenode
-
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 UnitsetBeforeAll(List<Function1<CommandContext<CommandSourceStack>, Integer>> beforeAll)final CommandNodegetNode()final CommandDSLbeforeAll(Function1<CommandContext<CommandSourceStack>, Integer> func)final CommandDSLgroup(String template, Integer permissionLevel, ArgumentType<?> argTypes, Function1<CommandDSL, Unit> block)final CommandDSLadd(String template, ArgumentType<?> types, Function1<CommandContext<CommandSourceStack>, Integer> execute)final Unitfinish()-
-
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)
-
-
-
-