Annotation Interface ItemList
Renders a searchable selector for Minecraft items. The annotated field must be a
String[] or List<String> containing namespaced item registry IDs,
for example minecraft:diamond.
Selected entries are ordered, can be removed and may be reordered. Use
maxEntries() with a value of 1 for a single-item selector.
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionLabel of the button that opens the item selector.booleanDeprecated.No longer needed.booleanDeprecated.No longer needed.booleanDeprecated.No longer needed.intMaximum number of selected items.booleanAllow the user to drag selected items into a different order.booleanDeprecated.No longer needed.booleanDeprecated.No longer needed.
-
Element Details
-
title
String title -
titleTranslation
Deprecated.No longer needed. OneConfig translates known keys automatically.- Default:
false
-
description
String description- Default:
""
-
descriptionTranslation
Deprecated.No longer needed. OneConfig translates known keys automatically.- Default:
false
-
icon
String icon- Default:
""
-
category
String category- Default:
"General"
-
categoryTranslation
Deprecated.No longer needed. OneConfig translates known keys automatically.- Default:
false
-
subcategory
String subcategory- Default:
"General"
-
subcategoryTranslation
Deprecated.No longer needed. OneConfig translates known keys automatically.- Default:
false
-
maxEntries
int maxEntriesMaximum number of selected items.0means unlimited.- Default:
0
-
reorderable
boolean reorderableAllow the user to drag selected items into a different order.- Default:
true
-
addText
Label of the button that opens the item selector.- Default:
"oneconfig.itemlist.add"
-
addTextTranslation
Deprecated.No longer needed. OneConfig translates known keys automatically.- Default:
false
-