Api

abstract class Api<F>

Basic implementations of the API-class holding properties and functions/methods which should be provided to the given implementer.

Author

Griefed

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

This instances common boolean utilities used across ServerPackCreator.

Link copied to clipboard

This instances common list utilities used across ServerPackCreator.

Link copied to clipboard
protected val log: <Error class: unknown class>
Link copied to clipboard
protected var setupWasRun: Boolean
Link copied to clipboard

This instances common String utilities used across ServerPackCreator.

Link copied to clipboard
protected val versionsRegex: <Error class: unknown class>
Link copied to clipboard
protected val xmlJsonRegex: <Error class: unknown class>

Functions

Link copied to clipboard
abstract fun checkServerFilesFile(fileToCheckFor: F): Boolean

Check whether the specified server-files file exists and create it if it doesn't.

Link copied to clipboard
abstract fun overwriteServerFilesFile(fileToOverwrite: F)

Overwrite the specified server-files file, even when it exists. Used to ensure files like the default script templates are always up-to-date.

Link copied to clipboard
abstract fun setup(force: Boolean = false): ApiWrapper

Convenience method to set up ServerPackCreator.

Link copied to clipboard
abstract fun stageOne()

Stage one of starting ServerPackCreator.