Api Wrapper
API wrapper, allowing you to conveniently initialize, setup and use the different aspects of ServerPackCreator.
Author
Griefed
Parameters
serverpackcreator.properties-file containing settings and configurations to load the API with.
Whether to run the file-setup during API inizialization.
Properties
This instances plugin manager for ServerPackCreator-plugins, if any are installed. This gives you access to the available extensions, should any be available in your instance of ServerPackCreator.
This instances settings used across ServerPackCreator, such as the working-directories, files and other settings.
This instances ConfigurationHandler for checking a given de.griefed.serverpackcreator.api.config.PackConfig for validity, so a server pack can safely be created from it.
This instances DocumentBuilder for working with XML-data.
This instances scanner to determine the sideness of Fabric mods.
This instances annotation scanner used to determine the sideness of Forge mods for Minecraft 1.12.2 and older.
This instances toml scanner to determine the sideness of Forge mods for Minecraft 1.13.x and newer.
This instances common JSON utilities used across ServerPackCreator.
This instances modscanner to determine the sideness of a given Forge, Fabric, LegacyFabric or Quilt mod.
This instances toml scanner to determine the sideness of NeoForge mods for Minecraft 1.20.5 and newer.
This instances JSON-ObjectMapper used across ServerPackCreator with which this instance was initialized. By default, the ObjectMapper used across ServerPackCreator has the following features set:
This instances scanner to determine the sideness of Quilt mods.
This instances ServerPackHandler used to turn a de.griefed.serverpackcreator.api.config.PackConfig into a server pack.
This instances toml parser to read and parse various .toml
-files during mod-scanning, plugin- and extension config loading and provisioning, serverpackcreator.conf reading and more.
This instances collection of common utilities used across ServerPackCreator.
This instances version meta used for checking version-correctness of Minecraft and supported modloaders, as well as gathering information about Minecraft servers and modloader installers.
This instances common web utilities used across ServerPackCreator.
This instances common XML utilities used across ServerPackCreator.
Functions
Check whether the specified server-files file exists and create it if it doesn't.
Overwrite the specified server-files file, even when it exists. Used to ensure files like the default script templates are always up-to-date.
Convenience method to set up ServerPackCreator.
Initialize ApiPlugins, de.griefed.serverpackcreator.api.modscanning.ModScanner (consisting of TomlParser, de.griefed.serverpackcreator.api.modscanning.ForgeAnnotationScanner, de.griefed.serverpackcreator.api.modscanning.FabricScanner, de.griefed.serverpackcreator.api.modscanning.ForgeTomlScanner, de.griefed.serverpackcreator.api.modscanning.QuiltScanner), ServerPackHandler.