net.minecraft.commands.arguments

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

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

ew
net.minecraft.commands.arguments.StringRepresentableArgument
net.minecraft.class_7485
net.minecraft.command.argument.EnumArgumentType
net.minecraft.src.C_213417_
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
f_234055_
private final com.mojang.serialization.Codec<T>
b
codec
field_39362
codec
f_234056_
private final Supplier<T[]>
c
values
field_39363
valuesSupplier
f_234057_

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)
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)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_234075_, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
public Collection<String>
getExamples()
getExamples()
getExamples()