public class EnumArgument<T extends java.lang.Enum<T>>
extends java.lang.Object
implements com.mojang.brigadier.arguments.ArgumentType<T>
Modifier | Constructor and Description |
---|---|
private |
EnumArgument(java.lang.Class<T> enumClass) |
Modifier and Type | Method and Description |
---|---|
static <R extends java.lang.Enum<R>> |
enumArgument(java.lang.Class<R> enumClass) |
java.util.Collection<java.lang.String> |
getExamples() |
<S> java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context,
com.mojang.brigadier.suggestion.SuggestionsBuilder builder) |
T |
parse(com.mojang.brigadier.StringReader reader) |
private EnumArgument(java.lang.Class<T> enumClass)
public static <R extends java.lang.Enum<R>> EnumArgument<R> enumArgument(java.lang.Class<R> enumClass)
public T parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
public <S> java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)