Package org.moddingx.libx.command
Class EnumArgumentIgnoreCase<T extends Enum<T>>
java.lang.Object
org.moddingx.libx.command.EnumArgumentIgnoreCase<T>
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<T>
public class EnumArgumentIgnoreCase<T extends Enum<T>>
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<T>
A case insensitive version of
EnumArgument
.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic <R extends Enum<R>>
EnumArgumentIgnoreCase<R> enumArgument
(Class<R> enumClass) Creates a new enum argument for the given enum class.<S> CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> listSuggestions
(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) parse
(com.mojang.brigadier.StringReader reader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mojang.brigadier.arguments.ArgumentType
parse
-
Method Details
-
enumArgument
Creates a new enum argument for the given enum class. -
parse
public T parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException -
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) -
getExamples
-