Class GuardFollowModeSetting

All Implemented Interfaces:
ISetting<String>, IStringSetting<String>

public class GuardFollowModeSetting extends StringSettingWithDesc
Stores the follow mode setting.
  • Field Details

  • Constructor Details

    • GuardFollowModeSetting

      public GuardFollowModeSetting()
      Create a new follow mode setting.
    • GuardFollowModeSetting

      public GuardFollowModeSetting(List<String> settings, int currentIndex)
      Create a new follow mode setting.
      Parameters:
      settings - the overall list of settings.
      currentIndex - the current selected index.
  • Method Details

    • isActive

      public boolean isActive(ISettingsModule module)
      Description copied from interface: ISetting
      Check if this setting is active (provided ISettingsModule.getOptionalSetting(ISettingKey) is used).
      Returns:
      true if the setting is active;
    • isActive

      public boolean isActive(ISettingsModuleView module)
      Description copied from interface: ISetting
      Check if this setting is active (provided ISettingsModule.getOptionalSetting(ISettingKey) is used).
      Returns:
      a component containing a message why this setting is not active, return null if the setting is supposed to be active.
    • shouldHideWhenInactive

      public boolean shouldHideWhenInactive()
      Description copied from interface: ISetting
      Configures if this setting is inactive, whether it should show in the settings at all. This would default to false in most cases as we want to prevent not showing settings, but certain settings related to addon mods may want to be hidden if another mod is not loaded.
      Returns:
      true if the inactive setting should be hidden.