Class SettingGroup
java.lang.Object
com.viaversion.viafabricplus.api.settings.SettingGroup
This class represents a group of settings. It is used to group settings in the settings screen.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.ComponentgetName()getSetting(String translationKey) Returns a setting by its translation key.List<AbstractSetting<?>> This list is used to store the settings of this group.
-
Constructor Details
-
SettingGroup
public SettingGroup(net.minecraft.network.chat.Component name)
-
-
Method Details
-
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 (seeAbstractSetting).- Returns:
- The list of settings.
-
getSetting
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()
-