ExtensionTab

abstract class ExtensionTab(val versionMeta: VersionMeta, val apiProperties: ApiProperties, val utilities: Utilities, val pluginConfig: Optional<CommentedConfig>, val configFile: Optional<File>) : JPanel(source)

Class to extend from if you want to add your own tabs to the ServerPackCreator GUI.

Parameters

versionMeta

Instance of VersionMeta so you can work with available Minecraft, Forge, Fabric, LegacyFabric and Quilt versions.

apiProperties

Instance of ApiProperties 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.

pluginConfig

Plugin specific configuration conveniently provided by ServerPackCreator. This is the global configuration of the plugin which provides the ConfigPanelExtension to ServerPackCreator.

configFile

The config-file corresponding to the ID of the plugin, wrapped in an Optional.

Constructors

Link copied to clipboard
protected constructor(versionMeta: VersionMeta, apiProperties: ApiProperties, utilities: Utilities, pluginConfig: Optional<CommentedConfig>, configFile: Optional<File>)

Properties

Link copied to clipboard
Link copied to clipboard
protected val configFile: Optional<File>
Link copied to clipboard
protected val log: Logger
Link copied to clipboard
protected val pluginConfig: Optional<CommentedConfig>
Link copied to clipboard
protected val utilities: Utilities
Link copied to clipboard
protected val versionMeta: VersionMeta

Functions

Link copied to clipboard
protected fun saveConfiguration()

Save the current configuration of this plugin to the overlying plugins config-file. Requires your plugin to register a global configuration-file. If your plugin does not provide a configuration-file, this method will not store or save anything. No file will be created. Your plugin MUST provide the initial configuration-file.