A - The actor typepublic final class ArgumentTypes<A extends revxrsal.commands.command.CommandActor>
extends java.lang.Object
ArgumentTypeFactory| Modifier and Type | Class and Description |
|---|---|
static class |
ArgumentTypes.Builder<A extends revxrsal.commands.command.CommandActor> |
| Constructor and Description |
|---|
ArgumentTypes(@NotNull ArgumentTypes.Builder<A> builder) |
| Modifier and Type | Method and Description |
|---|---|
static <A extends revxrsal.commands.command.CommandActor> |
builder()
Creates a new
ArgumentTypes.Builder for the registry |
@NotNull ArgumentTypes.Builder<A> |
toBuilder()
Creates a
SuggestionProviders.Builder that contains the providers registered
in this registry. |
@NotNull com.mojang.brigadier.arguments.ArgumentType<?> |
type(@NotNull revxrsal.commands.node.ParameterNode<A,?> parameter)
Returns the first
ArgumentType that can create an argument type
for the given parameter. |
public ArgumentTypes(@NotNull
@NotNull ArgumentTypes.Builder<A> builder)
@Contract(value="-> new",
pure=true)
@NotNull
public static <A extends revxrsal.commands.command.CommandActor> @NotNull ArgumentTypes.Builder<A> builder()
ArgumentTypes.Builder for the registryA - The actor type@NotNull
public @NotNull com.mojang.brigadier.arguments.ArgumentType<?> type(@NotNull
@NotNull revxrsal.commands.node.ParameterNode<A,?> parameter)
ArgumentType that can create an argument type
for the given parameter.
Note that this method will never return null. In cases where no
suitable provider is found, it will return StringArgumentType.string().
parameter - The parameter to create forStringArgumentType.string().@Contract(value="-> new",
pure=true)
@NotNull
public @NotNull ArgumentTypes.Builder<A> toBuilder()
SuggestionProviders.Builder that contains the providers registered
in this registry.