public class LiteralBuilder extends CommandNode<LiteralBuilder>
CommandLink.Executor, CommandLink.Requirementchildren, executor, requires| Modifier and Type | Method and Description |
|---|---|
protected int |
getPriority() |
@NotNull List<String> |
getTabComplete(@NotNull CommandContext context)
Gets the tabcomplete for this node
|
protected @NotNull LiteralBuilder |
getThis() |
protected String |
getUsageArgument(boolean isOptional) |
static @NotNull LiteralBuilder |
literal(@NotNull String literal)
Creates a new
LiteralBuilder |
@NotNull com.datasiqn.resultapi.Result<String,String> |
parse(@NotNull ArgumentReader reader)
Attempts to parse a string
|
String |
toString() |
canBeOptional, executeWith, getComparator, getUsagesexecutes, getChildren, getExecutor, requires, requiresBlock, requiresEntity, requiresLocatable, requiresPlayer, then@NotNull public @NotNull com.datasiqn.resultapi.Result<String,String> parse(@NotNull @NotNull ArgumentReader reader)
CommandNodeparse in class CommandNode<LiteralBuilder>reader - The reader to parse@NotNull public @NotNull List<String> getTabComplete(@NotNull @NotNull CommandContext context)
CommandNodegetTabComplete in class CommandNode<LiteralBuilder>context - The context in which the tab complete is being requestedprotected String getUsageArgument(boolean isOptional)
getUsageArgument in class CommandNode<LiteralBuilder>protected int getPriority()
getPriority in class CommandNode<LiteralBuilder>@NotNull protected @NotNull LiteralBuilder getThis()
getThis in class CommandLink<CommandNode<LiteralBuilder>>@Contract(value="_ -> new") @NotNull public static @NotNull LiteralBuilder literal(@NotNull @NotNull String literal)
LiteralBuilderliteral - The literal string. String cannot be empty or have spacesLiteralBuilder instanceIllegalArgumentException - If the string is empty or contains spacesCopyright © 2024. All rights reserved.