Klasse 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.
Siehe auch:
  • Konstruktordetails

    • SettingGroup

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

    • 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).
      Gibt zurück:
      The list of settings.
    • getSetting

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

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