Class CrafterRecipeSetting

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

public class CrafterRecipeSetting extends StringSettingWithDesc
Stores the recipe setting for crafter workers.
  • Field Details

  • Constructor Details

    • CrafterRecipeSetting

      public CrafterRecipeSetting()
      Create a new guard task list setting.
    • CrafterRecipeSetting

      public CrafterRecipeSetting(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

    • 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;
    • getInactiveReason

      @Nullable public @Nullable net.minecraft.network.chat.Component getInactiveReason()
      Description copied from interface: ISetting
      Get the reason why this setting is inactive.
      Returns:
      a component stating why this is inactive, or null if no reason.
    • 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.