Package de.placeblock.commandapi.core
Class Command<S>
java.lang.Object
de.placeblock.commandapi.core.Command<S>
Author: Placeblock
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCommand(String label, boolean async, CommandDesign commandDesign) Command(String label, CommandDesign commandDesign) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(ParsedCommandBranch<S> result, S source) voidexecuteRaw(ParsedCommandBranch<S> result, S source) abstract LiteralTreeCommandBuilder<S>generateCommand(LiteralTreeCommandBuilder<S> builder) static <S> ParsedCommandBranch<S>getBestResult(List<ParsedCommandBranch<S>> results) Returns the best Result for a list of ParsedCommandsgetSuggestions(List<ParsedCommandBranch<S>> results, S source) abstract booleanhasPermission(S source, String permission) voidparseAndExecute(String text, S source) abstract voidsendMessage(S source, net.kyori.adventure.text.TextComponent message)
-
Field Details
-
LOGGER
-
DESIGN
-
-
Constructor Details
-
Command
-
Command
-
Command
-
Command
-
-
Method Details
-
generateCommand
-
hasPermission
-
sendMessage
-
parseAndExecute
-
parse
-
execute
-
executeRaw
- Throws:
CommandParseException
-
getSuggestions
-
getBestResult
Returns the best Result for a list of ParsedCommands
-