Class ServerSettingsRegistry
java.lang.Object
com.soulfiremc.server.settings.lib.ServerSettingsRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddInternalPage
(Class<? extends SettingsObject> clazz, String pageName) Registers an internal class with the settings registry.addPluginPage
(Class<? extends SettingsObject> clazz, String pageName, Plugin owningPlugin, String iconId, BooleanProperty enabledProperty) Registers an internal class with the settings registry.
-
Constructor Details
-
ServerSettingsRegistry
public ServerSettingsRegistry()
-
-
Method Details
-
addInternalPage
@Internal public ServerSettingsRegistry addInternalPage(Class<? extends SettingsObject> clazz, String pageName) Registers an internal class with the settings registry. This is for classes associated to internal settings. They need to be handled explicitly by the client.- Parameters:
clazz
- The class to register- Returns:
- The registry
-
addPluginPage
public ServerSettingsRegistry addPluginPage(Class<? extends SettingsObject> clazz, String pageName, Plugin owningPlugin, String iconId, BooleanProperty enabledProperty) Registers an internal class with the settings registry. This is normally used for plugins, provide your plugin info to register the settings to your plugin.- Parameters:
clazz
- The class to registerpageName
- The name of the pageowningPlugin
- The owning pluginiconId
- The icon id Icons ids are from lucide.dev- Returns:
- The registry
-
exportSettingsMeta
-