Class ColorArgument
java.lang.Object
net.minecraft.commands.arguments.ColorArgument
- All Implemented Interfaces:
ArgumentType<ChatFormatting>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DynamicCommandExceptionTypeprivate static final Collection<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ColorArgumentcolor()static ChatFormattinggetColor(CommandContext<CommandSourceStack> context, String name) listSuggestions(CommandContext<S> contextBuilder, 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
-
EXAMPLES
-
ERROR_INVALID_VALUE
-
-
Constructor Details
-
ColorArgument
private ColorArgument()
-
-
Method Details
-
color
-
getColor
-
parse
- Specified by:
parsein interfaceArgumentType<ChatFormatting>- Throws:
CommandSyntaxException
-
listSuggestions
public <S> CompletableFuture<Suggestions> listSuggestions(CommandContext<S> contextBuilder, SuggestionsBuilder builder) - Specified by:
listSuggestionsin interfaceArgumentType<ChatFormatting>
-
getExamples
- Specified by:
getExamplesin interfaceArgumentType<ChatFormatting>
-