Package-level declarations

Core-package of ServerPackCreator.

Server packs are created using de.griefed.serverpackcreator.api.ConfigurationModel, which can be checked for errors using de.griefed.serverpackcreator.api.ConfigurationHandler.checkConfiguration and any of the available variants. Afterwards, when the checks of the given configuration model return no errors, it is fed into de.griefed.serverpackcreator.api.ServerPackHandler.run, which creates finally creates your server pack.

In other words, the intended workflow is as follows:

  1. Create a de.griefed.serverpackcreator.api.ConfigurationModel.

  2. Check it using de.griefed.serverpackcreator.api.ConfigurationHandler.checkConfiguration or variants.

  3. Create the server pack using de.griefed.serverpackcreator.api.ServerPackHandler.run.

Should you wish to customize your instance of ServerPackCreator, see de.griefed.serverpackcreator.api.ApplicationProperties. If you wish to enhance your instance of ServerPackCreator with plugins, see de.griefed.serverpackcreator.api.Applicationplugins and

Types

Link copied to clipboard
class ApiPlugins(tomlParser: TomlParser, apiProperties: ApiProperties, versionMeta: VersionMeta, utilities: Utilities) : JarPluginManager

Manager for ServerPackCreator plugins. In itself it doesn't do much. It gathers lists of all available extensions for TabExtension,PreGenExtension,PreZipExtension and PostGenExtension so they can then be run during server pack generation and during initialization of the GUI.

Link copied to clipboard
@Plugin(name = "ServerPackCreatorConfigFactory", category = "Core")
class ApiProperties(propertiesFile: File = File("serverpackcreator.properties")) : ConfigurationFactory

Base settings of ServerPackCreator, such as working directories, default list of clientside-only mods, default list of directories to include in a server pack, script templates, java paths and much more.

Link copied to clipboard

API wrapper, allowing you to conveniently initialize, setup and use the different aspects of ServerPackCreator.