Class EnumArgumentType<E extends Enum<E>>
java.lang.Object
dev.myriadclient.api.command.arguments.EnumArgumentType<E>
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<E>
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends Enum<E>>
EThe constant parsed for the argumentname.<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) static <E extends Enum<E>>
EnumArgumentType<E> An argument for one oftype's constants.parse(com.mojang.brigadier.StringReader reader) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
getExamples, parse
-
Method Details
-
of
An argument for one oftype's constants. -
get
public static <E extends Enum<E>> E get(com.mojang.brigadier.context.CommandContext<?> ctx, String name, Class<E> type) The constant parsed for the argumentname. Brigadier throwsIllegalArgumentExceptionif the command has no such argument. -
parse
-
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
-