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 Details

    • ERROR_INVALID_VALUE

      public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INVALID_VALUE
  • Method Details

    • color

      public static ColorArgument color()
    • parse

      public ChatColor parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.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 interface com.mojang.brigadier.arguments.ArgumentType<ChatColor>
    • getExamples

      public Collection<String> getExamples()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<ChatColor>