Class ComponentArgument

java.lang.Object
com.mrivanplays.ivancord.api.command.arguments.ComponentArgument
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<BaseComponent[]>

public class ComponentArgument extends Object implements com.mojang.brigadier.arguments.ArgumentType<BaseComponent[]>
A BungeeCord implementation of the minecraft:component argument
  • Field Details

    • ERROR_INVALID_JSON

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

    • getComponent

      public static BaseComponent[] getComponent(com.mojang.brigadier.context.CommandContext<?> context, String argName)
    • component

      public static ComponentArgument component()
    • parse

      public BaseComponent[] parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<BaseComponent[]>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getExamples

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