Class StringRepresentableArgument<T extends Enum<T> & StringRepresentable>
java.lang.Object
net.minecraft.commands.arguments.StringRepresentableArgument<T>
- All Implemented Interfaces:
ArgumentType<T>
- Direct Known Subclasses:
HeightmapTypeArgument, TemplateMirrorArgument, TemplateRotationArgument
public class StringRepresentableArgument<T extends Enum<T> & StringRepresentable>
extends Object
implements ArgumentType<T>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStringRepresentableArgument(Codec<T> codec, Supplier<T[]> values) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringlistSuggestions(CommandContext<S> context, SuggestionsBuilder builder) parse(StringReader reader) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ArgumentType
parse
-
Field Details
-
ERROR_INVALID_VALUE
-
codec
-
values
-
-
Constructor Details
-
StringRepresentableArgument
-
-
Method Details
-
parse
- Specified by:
parsein interfaceArgumentType<T extends Enum<T> & StringRepresentable>- Throws:
CommandSyntaxException
-
listSuggestions
public <S> CompletableFuture<Suggestions> listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) - Specified by:
listSuggestionsin interfaceArgumentType<T extends Enum<T> & StringRepresentable>
-
getExamples
- Specified by:
getExamplesin interfaceArgumentType<T extends Enum<T> & StringRepresentable>
-
convertId
-