Annotation Interface EffectList


@Retention(RUNTIME) @Target(FIELD) @Documented public @interface EffectList
Renders a searchable selector for status effects (potion effects)

The annotated field must be a String[] or List<String> containing namespaced effect registry IDs for example minecraft:speed

Selected entries are ordered and can be removed and may be reordered

Use maxEntries() with a value of 1 for a single-effect selector

  • Element Details

    • title

      String title
    • description

      String description
      Default:
      ""
    • icon

      String icon
      Default:
      ""
    • category

      String category
      Default:
      "General"
    • subcategory

      String subcategory
      Default:
      "General"
    • maxEntries

      int maxEntries
      Maximum number of selected effects and 0 means unlimited
      Default:
      0
    • reorderable

      boolean reorderable
      Allow the user to drag selected effects into a different order
      Default:
      true
    • addText

      @TranslatedDefault("oneconfig.effectlist.add") String addText
      Label of the button that opens the effect selector
      Default:
      "oneconfig.effectlist.add"
    • fullWidth

      boolean fullWidth
      Default:
      false