ResourcePackConfiguration

A configuration for a custom resource pack to be generated and served by Nova.

See also

Properties

Link copied to clipboard
val id: Key

The id of the resource pack.

Link copied to clipboard

Whether this resource pack is enabled for players by default. Defaults to true.

Link copied to clipboard
var logger: Logger

The logger used for the resource pack build process.

Functions

Link copied to clipboard

Registers a PackBuildData to be present during the resource pack build process.

Link copied to clipboard
fun registerPostProcessor(postProcessor: () -> PackPostProcessor)

Registers a PackPostProcessor that is run after the resource pack zip file has been created.

Link copied to clipboard

Registers ResourceFilters to be used during the resource pack build process.

Link copied to clipboard
fun registerTask(task: () -> PackTask)

Registers a PackTask to be run during the resource pack build process.

inline fun <D : PackBuildData> registerTask(noinline task: D.() -> PackTask)
inline fun <D : PackBuildData> registerTask(noinline task: D.(ResourcePackBuilder) -> PackTask)

Registers a PackTask to be run during the resource pack build process. Requires the presence of PackBuildData of type D.

Link copied to clipboard
fun setZipper(zipper: () -> PackZipper)

Sets the PackZipper that is used to create the resource pack zip file.