-
- All Implemented Interfaces:
-
land.vani.mcorouhlin.command.Command
public class DslCommand<S extends Object> implements Command<S>
-
-
Constructor Summary
Constructors Constructor Description DslCommand(String literal, Function1<DslCommandBuilder<S>, Unit> builderBlock)DslCommand(String literal, Function1<LiteralArgumentBuilder<S>, Unit> apply, Function1<DslCommandBuilder<S>, Unit> block)
-
Method Summary
Modifier and Type Method Description final LiteralArgumentBuilder<S>buildLiteral()Builds a literal argument that can be used by the CommandDispatcher. -
-
Constructor Detail
-
DslCommand
DslCommand(String literal, Function1<DslCommandBuilder<S>, Unit> builderBlock)
-
-
Method Detail
-
buildLiteral
final LiteralArgumentBuilder<S> buildLiteral()
Builds a literal argument that can be used by the CommandDispatcher.register function on a dispatcher to register this command.
-
-
-
-