Class EnumArgument<T extends Enum<T>>
java.lang.Object
net.neoforged.neoforge.server.command.EnumArgument<T>
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<T>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <R extends Enum<R>>
EnumArgument<R> enumArgument
(Class<R> enumClass) <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)
-
Field Details
-
INVALID_ENUM
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType INVALID_ENUM -
enumClass
-
-
Constructor Details
-
EnumArgument
-
-
Method Details
-
enumArgument
-
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
-