PackConfig

constructor(clientMods: List<String>, whitelist: List<String>, copyDirs: List<InclusionSpecification>, modpackDir: String, minecraftVersion: String, modLoader: String, modLoaderVersion: String, javaArgs: String, serverPackSuffix: String, serverIconPath: String, serverPropertiesPath: String, includeServerIcon: Boolean, includeServerProperties: Boolean, includeZipCreation: Boolean, scriptSettings: HashMap<String, String>, pluginsConfigs: HashMap<String, ArrayList<CommentedConfig>>)

Construct a new configuration model with custom values.

Author

Griefed

Parameters

clientMods

List of clientside mods to exclude from the server pack.

whitelist

List of mods to include if present, regardless whether a match was found through clientMods

copyDirs

List of directories and/or files to include in the server pack.

modpackDir

The path to the modpack.

minecraftVersion

The Minecraft version the modpack uses.

modLoader

The modloader the modpack uses. Either Forge, Fabric or Quilt.

modLoaderVersion

The modloader version the modpack uses.

javaArgs

JVM flags to create the start scripts with.

serverPackSuffix

Suffix to create the server pack with.

serverIconPath

Path to the icon to use in the server pack.

serverPropertiesPath

Path to the server.properties to create the server pack with.

includeServerIcon

Whether to include the server-icon.png in the server pack.

includeServerProperties

Whether to include the server.properties in the server pack.

includeZipCreation

Whether to create a ZIP-archive of the server pack.

scriptSettings

Map containing key-value pairs to be used in start script creation.

pluginsConfigs

Configuration for any and all plugins used by this configuration.


constructor(configFile: File)

Create a new configuration model from a config file.

Author

Griefed

Parameters

configFile

Configuration file to load.

Throws

if the specified file can not be found.

NoFormatFoundException

if the configuration format could not be determined by Night-Config.


constructor()