Language

class Language(val key: Key, var translations: Map<String, String>) : ResourcePackElement

A resource pack language.

Constructors

Link copied to clipboard
constructor(key: Key, translations: Map<String, String>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val key: Key

The key of the language.

Link copied to clipboard

The translations in this language.

Functions

Link copied to clipboard
open override fun save(pack: ResourcePack)

Saves this element to a resource pack.

Link copied to clipboard
open fun validate(pack: ResourcePack): Result<Unit>

Validates this element and returns a Result of type Unit, with an optional exception extending ResourcePackValidationException. This API will probably be improved in the future.