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 checkedPackConfigand callrun(); 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 objectrun()returns, describing the pack that was (or failed to be) generated.
See: Description
-
Class Summary Class Description ModListCompiler Compiler of the list of mods to include in a server pack: walks the mods-directory, excludes user-specified and automatically discovered clientside-only mods, and honors the mod-whitelist. ServerPackFile A ServerPackFile represents a source-destination-combination of two files/directories. ServerPackFileGatherer Gatherer of all files which make up a server pack: resolves inclusion-specifications to source-destination-pairs, applies in-/exclusion-filters, delegates the mods-directory to the mod-list-compiler, and performs the copy itself. ServerPackGeneration Returned by de.griefed.serverpackcreator.api.serverpack.ServerPackHandler.run. ServerPackHandler Everything revolving around creating a server pack. ServerPackManifest The server pack manifest shipped with every modpack. ServerPackProvisioner Provisioner for everything a server pack needs besides the modpack-files themselves: the server-icon, server.properties, start-scripts with variables.txt and HOW-TO-RUN.md, the ZIP-archive, the improved Fabric-launcher, installer-availability checks and pre-/post-install cleanups.