Class SettingGroup

java.lang.Object
com.viaversion.viafabricplus.api.settings.SettingGroup

public class SettingGroup extends Object
This class represents a group of settings. It is used to group settings in the settings screen.
See Also:
  • Constructor Details

    • SettingGroup

      public SettingGroup(net.minecraft.network.chat.Component name)
  • Method Details

    • getSettings

      public List<AbstractSetting<?>> getSettings()
      This list is used to store the settings of this group. It should not be touched directly by developers. The list gets filled automatically when creating a new setting (see AbstractSetting).
      Returns:
      The list of settings.
    • getSetting

      public AbstractSetting<?> getSetting(String translationKey)
      Returns a setting by its translation key.
      Parameters:
      translationKey - The translation key of the setting.
      Returns:
      The setting or null if no setting with the given translation key was found.
    • getName

      public net.minecraft.network.chat.Component getName()