Class ColorArgument
java.lang.Object
com.mrivanplays.ivancord.api.command.arguments.ColorArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<ChatColor>
public class ColorArgument
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<ChatColor>
A BungeeCord implementation of the
minecraft:color
argument-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
-
Method Summary
Modifier and TypeMethodDescriptionstatic ColorArgument
color()
<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
-
ERROR_INVALID_VALUE
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INVALID_VALUE
-
-
Method Details
-
color
-
parse
public ChatColor parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<ChatColor>
- 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) - Specified by:
listSuggestions
in interfacecom.mojang.brigadier.arguments.ArgumentType<ChatColor>
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<ChatColor>
-