public interface ConfigPanelExtension extends ExtensionInformation
JPanels in a given server pack tab,
allowing users to customize server pack specific configurations of an addon.| Modifier and Type | Method and Description |
|---|---|
ExtensionConfigPanel |
getPanel(VersionMeta versionMeta,
ApplicationProperties applicationProperties,
Utilities utilities,
TabCreateServerPack tabCreateServerPack,
java.util.Optional<com.electronwill.nightconfig.core.CommentedConfig> addonConfig,
java.lang.String extensionName,
java.lang.String pluginID)
This method gets called when an extension of this type is run.
|
getExtensionIdgetAuthor, getDescription, getName, getVersionExtensionConfigPanel getPanel(VersionMeta versionMeta, ApplicationProperties applicationProperties, Utilities utilities, TabCreateServerPack tabCreateServerPack, java.util.Optional<com.electronwill.nightconfig.core.CommentedConfig> addonConfig, java.lang.String extensionName, java.lang.String pluginID)
ServerPackHandler extension-points, which would then
download the version you specified via this here panel.versionMeta - Instance of VersionMeta so you can work with available
Minecraft, Forge, Fabric, LegacyFabric and Quilt versions.applicationProperties - Instance of ApplicationProperties The current
configuration of ServerPackCreator, like the default list of
clientside-only mods, the server pack directory etc.utilities - Instance of Utilities commonly used across
ServerPackCreator.tabCreateServerPack - Instance of TabCreateServerPack to give you access to the
various fields inside it, like the modpack directory, selected
Minecraft, modloader and modloader versions, etc.addonConfig - Addon specific configuration conveniently provided by
ServerPackCreator. This is the global configuration of the addon
which provides the ConfigPanelExtension to ServerPackCreator.extensionName - The name the titled border of this ConfigPanel will get.pluginID - The same as the PluginId.