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 and 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 selectorbooleanDeprecated.No longer needed because OneConfig translates known keys automaticallybooleanDeprecated.No longer needed because OneConfig translates known keys automaticallybooleanDeprecated.No longer needed because OneConfig translates known keys automaticallybooleanintMaximum number of selected items and0means unlimitedbooleanAllow the user to drag selected items into a different orderbooleanDeprecated.No longer needed because OneConfig translates known keys automaticallybooleanDeprecated.No longer needed because OneConfig translates known keys automatically
-
Element Details
-
title
String title -
titleTranslation
Deprecated.No longer needed because OneConfig translates known keys automatically- Default:
false
-
description
String description- Default:
""
-
descriptionTranslation
Deprecated.No longer needed because OneConfig translates known keys automatically- Default:
false
-
icon
String icon- Default:
""
-
category
String category- Default:
"General"
-
categoryTranslation
Deprecated.No longer needed because OneConfig translates known keys automatically- Default:
false
-
subcategory
String subcategory- Default:
"General"
-
subcategoryTranslation
Deprecated.No longer needed because OneConfig translates known keys automatically- Default:
false
-
maxEntries
int maxEntriesMaximum number of selected items and0means 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 because OneConfig translates known keys automatically- Default:
false
-
fullWidth
boolean fullWidth- Default:
false
-