Package-level declarations

Types

Link copied to clipboard
data class Pack(val packFormat: Int, val minFormat: Int?, val maxFormat: Int?, val supportedFormats: SupportedFormats?, val description: String?)

Represents the pack part in a pack.mcmeta. Example:

Link copied to clipboard

Represents a pack format/version.

Link copied to clipboard
data class PackLanguage(val name: String, val region: String, val bidirectional: Boolean)

Represents a pack language.

Link copied to clipboard
class ResourcePack(var meta: ResourcePackMeta, var outputDir: File, var assetResolutionStrategy: AssetResolutionStrategy, _elements: MutableList<ResourcePackElement> = mutableListOf(), _hooks: MutableList<PackedHook> = mutableListOf())

A resource pack, containing several ResourcePackElements.

Link copied to clipboard

A builder for resource packs.

Link copied to clipboard

Represents something inside of a resource pack which can be validated and saved.

Link copied to clipboard
data class ResourcePackMeta(val pack: Pack? = null, val language: PackLanguage? = null)

Represents the pack.mcmeta file.

Link copied to clipboard
abstract class ResourcePackValidationException(val errorMessage: String? = null, val warnMessage: String? = null) : Exception

An exception which happens when a ResourcePackElement failed to validate. Note that this is only used inside of Results and never thrown.

Link copied to clipboard
data class SupportedFormats(val minInclusive: Int, val maxInclusive: Int)

Represents the supported_formats part in a pack.mcmeta. Supported formats/versions for the resource pack.