Package me.hackware.api.setting.impl
Class MultiSelectSetting
A setting that stores a set of selected string identifiers.
The
MultiSelectSetting.Mode determines the kind of items available for selection (e.g. blocks).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumBLOCKS, every entity type, breedable animals only, or mobs only (what a nametag can go on). -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondefaultValue(Set<String> defaultValue) Sets the default selection; the value starts as its own copy of it.getMode()booleanisSelected(String item) intvoidvoidToggle the selection state of an item and save.Methods inherited from class me.hackware.api.setting.Setting
description, displayName, get, getDefaultValue, getDescription, getDisplayName, getGroup, getName, getOwner, group, isBulkLoading, isModal, isVisible, onChanged, resetToDefault, setBulkLoadProbe, setModal, setOwner, visible, visible
-
Constructor Details
-
MultiSelectSetting
-
-
Method Details
-
defaultValue
Sets the default selection; the value starts as its own copy of it.- Overrides:
defaultValuein classSetting<Set<String>>
-
getMode
-
isSelected
-
toggle
Toggle the selection state of an item and save. -
selectedCount
public int selectedCount() -
getSelected
-
setValue
-