ServerPackGeneration

class ServerPackGeneration(val serverPack: File, val errors: List<String>, val serverPackZip: Optional<File>, val packConfig: PackConfig, val files: List<File>)

Returned by de.griefed.serverpackcreator.api.serverpack.ServerPackHandler.run. Contains information about the generated server pack, or the server pack which was attempted to be generated.

Author

Griefed

Constructors

Link copied to clipboard
constructor(serverPack: File, errors: List<String>, serverPackZip: Optional<File>, packConfig: PackConfig, files: List<File>)

Properties

Link copied to clipboard

List of errors encountered during server pack generation.

Link copied to clipboard

A list of all files in the server pack. These are absolute files, mind you. If you need relative-files, iterate through this list and remove the path to the server pack from each entry to receive a list of relative paths.

Link copied to clipboard

The configuration used in the generation of this server pack.

Link copied to clipboard

The generated server pack as a file. This usually points towards a directory on the file-system.

Link copied to clipboard

The server pack ZIP-archive, if one was generated. Optional for ease of use, as not every server pack generation also creates a ZIP-archive.

Link copied to clipboard

Whether the generation was successful.