Class BeekeeperCollectionSetting
java.lang.Object
com.minecolonies.core.colony.buildings.modules.settings.StringSetting
com.minecolonies.core.colony.buildings.modules.settings.BeekeeperCollectionSetting
- All Implemented Interfaces:
ISetting<String>,IStringSetting<String>
Stores the beekeeper collection setting.
-
Field Summary
Fields inherited from class com.minecolonies.core.colony.buildings.modules.settings.StringSetting
currentIndex, MAX_BUTTON_WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionBeekeeperCollectionSetting(String... settings) Create a new string list setting.BeekeeperCollectionSetting(List<String> settings, int currentIndex) Create a new string list setting. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisIndexAllowed(int index) voidsetupHandler(ISettingKey<?> key, com.ldtteam.blockui.Pane pane, ICommonSettingsModule settingsModuleView, IBuildingView building, com.ldtteam.blockui.views.BOWindow window) Add the handling of the specific setting to the box in the UI.Methods inherited from class com.minecolonies.core.colony.buildings.modules.settings.StringSetting
copyValue, getButtonWidth, getCurrentIndex, getDefault, getDisplayText, getLayoutItem, getSettings, getValue, render, set, trigger, updateSettingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.minecolonies.api.colony.buildings.modules.settings.ISetting
getInactiveReason, getToolTipText, isActive, isActive, onUpdate, setHoverPane, shouldHideWhenInactive
-
Constructor Details
-
BeekeeperCollectionSetting
Create a new string list setting.- Parameters:
settings- the overall list of settings.
-
BeekeeperCollectionSetting
Create a new string list setting.- Parameters:
settings- the overall list of settings.currentIndex- the current selected index.
-
-
Method Details
-
setupHandler
public void setupHandler(ISettingKey<?> key, com.ldtteam.blockui.Pane pane, ICommonSettingsModule settingsModuleView, IBuildingView building, com.ldtteam.blockui.views.BOWindow window) Description copied from interface:ISettingAdd the handling of the specific setting to the box in the UI.- Specified by:
setupHandlerin interfaceISetting<String>- Overrides:
setupHandlerin classStringSetting- Parameters:
key- the key of the setting.pane- the pane of it.settingsModuleView- the module view that holds the setting.building- the building.window- the calling window.
-
isIndexAllowed
public boolean isIndexAllowed(int index) - Overrides:
isIndexAllowedin classStringSetting
-