Interface RegistryPicker.Source<T>
- Enclosing class:
RegistryPicker<T>
public static interface RegistryPicker.Source<T>
What the picker lists and how picking works: a multi-select list, a single choice, or anything else.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanWhethertmay be listed at all (a setting's filter).all()Every entry there is (a registry), in its own order.booleanWhethertis picked now.default net.minecraft.world.item.ItemStackThe icon drawn besidet: blocks and items show their item, anything elseItemStack.EMPTY(none).Matched by the search box besides the name.label()The collapsed row's text, e.g.Whattis called on screen.intsize()How many are selected (any non-negative number for single choices).voidA click ont: pick or unpick it (or, for a single choice, pick it).
-
Method Details
-
all
-
accepts
Whethertmay be listed at all (a setting's filter). -
contains
Whethertis picked now. -
toggle
A click ont: pick or unpick it (or, for a single choice, pick it). -
size
int size()How many are selected (any non-negative number for single choices). -
label
String label()The collapsed row's text, e.g. "3 selected". -
id
-
name
-
icon
The icon drawn besidet: blocks and items show their item, anything elseItemStack.EMPTY(none).
-