copyFiles

fun copyFiles(packConfig: Pack<*, *, *>)

Copies all specified directories and mods, excluding clientside-only mods, from the modpack directory into the server pack directory. If a source/file;destination/file -combination is provided, the specified source-file is copied to the specified destination-file. One of the reasons as to why it is recommended to run a given ConfigurationModel through the ConfigurationHandler first, is because the ConfigurationHandler will resolve links to their actual files first before then correcting the given ConfigurationModel.

Author

Griefed

Parameters

packConfig

ConfigurationModel containing the modpack directory, list of directories and files to copy, list of clientside-only mods to exclude, the Minecraft version used by the modpack and server pack, and the modloader used by the modpack and server pack.


abstract fun copyFiles(modpackDir: String, inclusions: <Error class: unknown class><InclusionSpecification>, clientMods: List<String>, whitelist: List<String>, minecraftVersion: String, destination: String, modloader: String)

Copies all specified directories and mods, excluding clientside-only mods, from the modpack directory into the server pack directory. If a source/file;destination/file -combination is provided, the specified source-file is copied to the specified destination-file. One of the reasons as to why it is recommended to run a given ConfigurationModel through the ConfigurationHandler first, is because the ConfigurationHandler will resolve links to their actual files first before then correcting the given ConfigurationModel.

Author

Griefed

Parameters

modpackDir

Files and directories are copied into the server_pack directory inside the modpack directory.

inclusions

All directories and files therein to copy to the server pack.

clientMods

List of clientside-only mods to exclude from the server pack.

minecraftVersion

The Minecraft version the modpack uses.

destination

The destination where the files should be copied to.

modloader

The modloader used for mod sideness detection.