Interface IStringSetting<S>
- All Superinterfaces:
ISetting<S>
- All Known Implementing Classes:
BeekeeperCollectionSetting,BuilderModeSetting,CrafterRecipeSetting,GuardFollowModeSetting,GuardPatrolModeSetting,GuardTaskSetting,StringSetting,StringSettingWithDesc
String Setting.
-
Method Summary
Modifier and TypeMethodDescriptionintGet the current index of the setting.Get the default value.Get the list of all settings.getValue()Get the setting value.voidSet the setting to a specific index.Methods inherited from interface com.minecolonies.api.colony.buildings.modules.settings.ISetting
copyValue, getInactiveReason, getLayoutItem, getToolTipText, isActive, isActive, onUpdate, render, setHoverPane, setupHandler, shouldHideWhenInactive, trigger, updateSetting
-
Method Details
-
getValue
S getValue()Get the setting value. -
getDefault
S getDefault()Get the default value.- Returns:
- the default value.
-
getCurrentIndex
int getCurrentIndex()Get the current index of the setting.- Returns:
- the index.
-
getSettings
Get the list of all settings.- Returns:
- a copy of the list.
-
set
Set the setting to a specific index.- Parameters:
value- the value to set.
-