This - The type of the extended classpublic abstract class CommandNode<This extends CommandNode<This>> extends CommandLink<CommandNode<This>>
CommandLink.Executor, CommandLink.Requirementchildren, executor, requires| Constructor and Description |
|---|
CommandNode() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canBeOptional() |
@NotNull com.datasiqn.resultapi.Result<com.datasiqn.resultapi.None,String> |
executeWith(CommandContext context)
Executes this node
|
static Comparator<CommandNode<?>> |
getComparator()
Gets the comparator for command nodes
|
protected int |
getPriority() |
abstract @NotNull List<String> |
getTabComplete(@NotNull CommandContext context)
Gets the tabcomplete for this node
|
protected abstract String |
getUsageArgument(boolean isOptional) |
protected List<String> |
getUsages(boolean isOptional) |
abstract @NotNull com.datasiqn.resultapi.Result<?,String> |
parse(ArgumentReader reader)
Attempts to parse a string
|
executes, getChildren, getExecutor, getThis, requires, requiresBlock, requiresEntity, requiresLocatable, requiresPlayer, then@NotNull public final @NotNull com.datasiqn.resultapi.Result<com.datasiqn.resultapi.None,String> executeWith(CommandContext context)
context - The context in which the command was executedIllegalStateException - If there's no executor for this CommandNode@NotNull public abstract @NotNull List<String> getTabComplete(@NotNull @NotNull CommandContext context)
context - The context in which the tab complete is being requested@NotNull public abstract @NotNull com.datasiqn.resultapi.Result<?,String> parse(ArgumentReader reader)
reader - The reader to parseprotected int getPriority()
protected abstract String getUsageArgument(boolean isOptional)
protected boolean canBeOptional()
public static Comparator<CommandNode<?>> getComparator()
Copyright © 2024. All rights reserved.