getModsToInclude

open override 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.

userSpecifiedWhitelist

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.