PackConfig

expect open class PackConfig

A PackConfig contains the settings required to create a server pack. A configuration model usually consists of:

  • Modpack directory

  • Minecraft version

  • Modloader

  • Modloader version

  • Java args for the start scripts

  • Files and directories to copy to the server pack

  • Whether to pre-install the modloader server

  • Whether to include a server-icon

  • Whether to include a server.properties

  • Whether to create a ZIP-archive

Author

Griefed

actual open class PackConfig : Pack<File, JsonNode, PackConfig>

A PackConfig contains the settings required to create a server pack. A configuration model usually consists of:

  • Modpack directory

  • Minecraft version

  • Modloader

  • Modloader version

  • Java args for the start scripts

  • Files and directories to copy to the server pack

  • Whether to pre-install the modloader server

  • Whether to include a server-icon

  • Whether to include a server.properties

  • Whether to create a ZIP-archive

Author

Griefed

Constructors

Link copied to clipboard
expect 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: <Error class: unknown class><String, String>, pluginsConfigs: <Error class: unknown class><String, <Error class: unknown class><CommentedConfig>>)

Construct a new configuration model with custom values.

expect constructor()
constructor(utilities: Utilities, configFile: File)

Create a new configuration model from a config file.

actual constructor()

Properties

Link copied to clipboard
expect val clientMods: <Error class: unknown class><String>
Link copied to clipboard
Link copied to clipboard
protected val fabric: Regex
Link copied to clipboard
open var fileDiskName: String?
Link copied to clipboard
open var fileName: String?
Link copied to clipboard
protected val forge: Regex
Link copied to clipboard
expect val inclusions: <Error class: unknown class><InclusionSpecification>
Link copied to clipboard
Link copied to clipboard
expect var javaArgs: String
Link copied to clipboard
protected val legacyFabric: Regex
Link copied to clipboard
Link copied to clipboard
expect var modloader: String
Link copied to clipboard
Link copied to clipboard
expect var modpackDir: String
Link copied to clipboard
var modpackJson: JsonNode?
Link copied to clipboard
expect val modsWhitelist: <Error class: unknown class><String>
Link copied to clipboard
protected val neoForge: Regex
Link copied to clipboard
expect val pluginsConfigs: <Error class: unknown class><String, <Error class: unknown class><CommentedConfig>>
Link copied to clipboard
open var projectName: String?
Link copied to clipboard
protected val quilt: Regex
Link copied to clipboard
expect val scriptSettings: <Error class: unknown class><String, String>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected val whitespace: Regex

Functions

Link copied to clipboard
expect fun getPluginConfigs(pluginId: String): <Error class: unknown class><CommentedConfig>
Link copied to clipboard
expect fun save(destination: File, apiProperties: ApiProperties): PackConfig
Link copied to clipboard
fun setClientMods(newClientMods: MutableList<String>)
Link copied to clipboard
Link copied to clipboard
fun setModsWhitelist(newModsWhitelist: MutableList<String>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String