PackConfig

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

Constructors

Link copied to clipboard
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.

constructor(configFile: File)

Create a new configuration model from a config file.

constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var diskName: String?
Link copied to clipboard
val fabric: <Error class: unknown class>
Link copied to clipboard
val forge: <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val legacyFabric: <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var modpackJson: JsonNode?
Link copied to clipboard
Link copied to clipboard
open var name: String?
Link copied to clipboard
val neoForge: <Error class: unknown class>
Link copied to clipboard
val pluginsConfigs: HashMap<String, ArrayList<CommentedConfig>>
Link copied to clipboard
open var projectID: String?
Link copied to clipboard
val quilt: <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var versionID: String?
Link copied to clipboard
val whitespace: <Error class: unknown class>

Functions

Link copied to clipboard
fun getPluginConfigs(pluginId: String): ArrayList<CommentedConfig>
Link copied to clipboard
fun save(destination: File, apiProperties: ApiProperties = ApiWrapper.api().apiProperties): PackConfig

Save this configuration to disk.

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
fun setPluginsConfigs(pluginConfigs: HashMap<String, ArrayList<CommentedConfig>>)
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String