Annotation Type Argument


  • @Retention(RUNTIME)
    @Documented
    @Target(ANNOTATION_TYPE)
    public @interface Argument
    Describes a required argument of a Command. The final argument of a command may optionally take more than one value.
    Author:
    cdivilly
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      TranslatableText description
      Translatable description of the argument's purpose
      java.lang.String name
      The name of the argument
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.Class<?> type
      The type of the argument's value
    • Element Detail

      • name

        java.lang.String name
        The name of the argument
        Returns:
        The argument name
      • type

        java.lang.Class<?> type
        The type of the argument's value
        Returns:
        The argument value's type
        Default:
        java.lang.String.class