T - The type of the argumentpublic class ArgumentBuilder<T> extends CommandNode<ArgumentBuilder<T>>
CommandLink.Executor, CommandLink.Requirementchildren, executor, requires| Modifier and Type | Method and Description |
|---|---|
static <T> @NotNull ArgumentBuilder<T> |
argument(ArgumentType<T> type,
String argName)
Creates a new
ArgumentBuilder |
protected boolean |
canBeOptional() |
protected int |
getPriority() |
@NotNull List<String> |
getTabComplete(@NotNull CommandContext context)
Gets the tabcomplete for this node
|
protected @NotNull ArgumentBuilder<T> |
getThis() |
protected String |
getUsageArgument(boolean isOptional) |
@NotNull com.datasiqn.resultapi.Result<T,String> |
parse(ArgumentReader reader)
Attempts to parse a string
|
String |
toString() |
executeWith, getComparator, getUsagesexecutes, getChildren, getExecutor, requires, requiresBlock, requiresEntity, requiresLocatable, requiresPlayer, then@NotNull public @NotNull List<String> getTabComplete(@NotNull @NotNull CommandContext context)
CommandNodegetTabComplete in class CommandNode<ArgumentBuilder<T>>context - The context in which the tab complete is being requested@NotNull public @NotNull com.datasiqn.resultapi.Result<T,String> parse(ArgumentReader reader)
CommandNodeparse in class CommandNode<ArgumentBuilder<T>>reader - The reader to parseprotected String getUsageArgument(boolean isOptional)
getUsageArgument in class CommandNode<ArgumentBuilder<T>>protected int getPriority()
getPriority in class CommandNode<ArgumentBuilder<T>>protected boolean canBeOptional()
canBeOptional in class CommandNode<ArgumentBuilder<T>>@NotNull protected @NotNull ArgumentBuilder<T> getThis()
getThis in class CommandLink<CommandNode<ArgumentBuilder<T>>>@Contract(value="_, _ -> new") @NotNull public static <T> @NotNull ArgumentBuilder<T> argument(ArgumentType<T> type, String argName)
ArgumentBuilderT - The type of the argumenttype - The argument typeargName - The name of the argumentArgumentBuilder instanceCopyright © 2024. All rights reserved.