Package de.griefed.serverpackcreator.api.serverpack

Step 3: actually building the server pack.

ServerPackHandler orchestrates; the other classes are the focused workers it delegates to (each was split out of the once-giant handler).

  • ServerPackHandler — the conductor of generation. Give it a checked PackConfig and call run(); it produces the finished server pack.

  • ModListCompiler — decides which mods make the cut: walks the mods folder, removes user-excluded and auto-detected client-only mods, and honours the whitelist.

  • ServerPackFileGatherer — figures out which files to copy where: turns include-specs into source→destination pairs, applies the filters, and does the copying.

  • ServerPackFile — one such source→destination pair (a file/dir in the modpack and where it lands in the server pack).

  • ServerPackProvisioner — adds everything that isn't modpack content: the server-icon, server.properties, start-scripts, the ZIP-archive, installer checks, and the pre/post plugin hooks.

  • ServerPackManifest — the manifest written into every server pack (Minecraft version, loader + version, SPC version, file-list).

  • ServerPackGeneration — the result object run() returns, describing the pack that was (or failed to be) generated.

See: Description