LanguageContent

Contains all translations of the resource pack.

Constructors

Link copied to clipboard
constructor(builder: ResourcePackBuilder)

Types

Link copied to clipboard
inner class LoadAll : PackTask

Loads all lang files, both vanilla and custom.

Link copied to clipboard
inner class Write : PackTask

Writes all translations of LanguageContent to the resource pack.

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Gets the custom translation map for path.

Link copied to clipboard

Gets a translation for key in lang from either customLangs or vanillaLangs. If the translation neither found in lang nor en_us, the key is returned.

Link copied to clipboard

Retrieves the vanilla translation map for path.

Link copied to clipboard

Sets the translation of key in lang to value.