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>

public class BeekeeperCollectionSetting extends StringSetting
Stores the beekeeper collection setting.
  • Constructor Details

    • BeekeeperCollectionSetting

      public BeekeeperCollectionSetting(String... settings)
      Create a new string list setting.
      Parameters:
      settings - the overall list of settings.
    • BeekeeperCollectionSetting

      public BeekeeperCollectionSetting(List<String> settings, int currentIndex)
      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: ISetting
      Add the handling of the specific setting to the box in the UI.
      Specified by:
      setupHandler in interface ISetting<String>
      Overrides:
      setupHandler in class StringSetting
      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:
      isIndexAllowed in class StringSetting