net.minecraft.commands.arguments

public class StringRepresentableArgument<T extends Enum<T> extends StringRepresentable>

implements com.mojang.brigadier.arguments.ArgumentType<T>

gg
net.minecraft.commands.arguments.StringRepresentableArgument
net.minecraft.class_7485
net.minecraft.command.argument.EnumArgumentType
net.minecraft.commands.arguments.StringRepresentableArgument

Field summary

Modifier and TypeField
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
a
ERROR_INVALID_VALUE
field_39361
INVALID_ENUM_EXCEPTION
private final com.mojang.serialization.Codec<T>
b
codec
field_39362
codec
private final Supplier<T[]>
c
values
field_39363
valuesSupplier

Constructor summary

ModifierConstructor
protected (com.mojang.serialization.Codec<T> codec, Supplier<T[]> valuesSupplier)

Method summary

Modifier and TypeMethod
public T
a(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
method_44091(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions(com.mojang.brigadier.context.CommandContext<S> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
public Collection<String>
getExamples()
getExamples()
protected String
a(String arg0)
convertId(String arg0)
method_49545(String arg0)
transformValueName(String name)