Annotation 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
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionLabel of the button that opens the effect selectorbooleanintMaximum number of selected effects and0means unlimitedbooleanAllow the user to drag selected effects into a different order
-
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 maxEntriesMaximum number of selected effects and0means unlimited- Default:
0
-
reorderable
boolean reorderableAllow the user to drag selected effects into a different order- Default:
true
-
addText
Label of the button that opens the effect selector- Default:
"oneconfig.effectlist.add"
-
fullWidth
boolean fullWidth- Default:
false
-