getModsToInclude

Generates a list of all mods to include in the server pack. If the user specified clientside-mods to exclude, and/or if the automatic exclusion of clientside-only mods is active, they will be excluded, too.

Return

A list of all mods to include in the server pack.

Author

Griefed

Parameters

packConfig

The configurationModel containing the modpack directory, list of clientside-only mods to exclude, Minecraft version used by the modpack and server pack and the modloader used by the modpack and server pack.


fun getModsToInclude(modsDir: String, userSpecifiedClientMods: List<String>, userSpecifiedModsWhitelist: List<String>, minecraftVersion: String, modloader: String): List<File>

Generates a list of all mods to include in the server pack. If the user specified clientside-mods to exclude, and/or if the automatic exclusion of clientside-only mods is active, they will be excluded, too.

Return

A list of all mods to include in the server pack.

Author

Griefed

Parameters

modsDir

The mods-directory of the modpack of which to generate a list of all its contents.

userSpecifiedClientMods

A list of all clientside-only mods.

userSpecifiedModsWhitelist

A list of mods to include regardless if a match was found in userSpecifiedClientMods.

minecraftVersion

The Minecraft version the modpack uses. When the modloader is Forge, this determines whether Annotations or Tomls are scanned.

modloader

The modloader the modpack uses.