Annotation Interface Button


@Retention(RUNTIME) @Target(METHOD) @Documented public @interface Button
  • Element Details

    • title

      String title
    • titleTranslation

      @Deprecated boolean titleTranslation
      Deprecated.
      No longer needed. OneConfig now checks whether the given title is a translation key present in the active language, and translates it automatically when it is. Pass the translation key directly as the title and remove this flag.
      Default:
      false
    • titleKey

      Deprecated.
      Default:
      ""
    • description

      String description
      Default:
      ""
    • descriptionTranslation

      @Deprecated boolean descriptionTranslation
      Deprecated.
      No longer needed. OneConfig now checks whether the given description is a translation key present in the active language, and translates it automatically when it is. Pass the translation key directly as the description and remove this flag.
      Default:
      false
    • descriptionKey

      @Deprecated String descriptionKey
      Deprecated.
      Default:
      ""
    • icon

      String icon
      Default:
      ""
    • category

      String category
      Default:
      "General"
    • categoryTranslation

      @Deprecated boolean categoryTranslation
      Deprecated.
      No longer needed. OneConfig now checks whether the given category is a translation key present in the active language, and translates it automatically when it is. Pass the translation key directly as the category and remove this flag.
      Default:
      false
    • categoryKey

      @Deprecated String categoryKey
      Deprecated.
      Default:
      ""
    • subcategory

      String subcategory
      Default:
      "General"
    • subcategoryTranslation

      @Deprecated boolean subcategoryTranslation
      Deprecated.
      translation keys will be translated by default.
      Default:
      false
    • subcategoryKey

      @Deprecated String subcategoryKey
      Deprecated.
      Default:
      ""
    • text

      String text
      Default:
      "Click"
    • textKey

      String textKey
      Default:
      ""