Resource Pack
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.
Constructors
Link copied to clipboard
constructor(meta: ResourcePackMeta, outputDir: File, assetResolutionStrategy: AssetResolutionStrategy, _elements: MutableList<ResourcePackElement> = mutableListOf(), _hooks: MutableList<PackedHook> = mutableListOf())
Properties
Functions
Link copied to clipboard
Adds a basic sound to this pack.
Adds a basic sound to this resource pack. A basic sound will be saved to the first (or a new) sound list of the same namespace of the sound.
Builds and adds a basic sound to this resource pack.
Link copied to clipboard
Adds a resource pack element to this pack.
Link copied to clipboard
Adds a translation to each Minecraft language.
Link copied to clipboard
Adds an item definition to this resource pack.
Link copied to clipboard
Adds an item model to this resource pack.
Link copied to clipboard
Adds a language to this resource pack.
Link copied to clipboard
Adds a translation to a specified language of this resource pack.
Link copied to clipboard
Installs a hook.