ItemModel

Represents an item model within a resource pack.

Constructors

Link copied to clipboard
constructor(key: Key, parent: String?, display: ItemModelDisplay?, textures: Map<String, Key>?, guiLight: String?, cubes: List<Cube>?, overrides: List<OverrideCase>?)

Types

Link copied to clipboard
class Builder(val key: Key)
Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val cubes: List<Cube>?

The cubes contained in this model.

Link copied to clipboard

The display options of this model.

Link copied to clipboard

The lighting options of this model.

Link copied to clipboard
var key: Key

The key of this item model.

Link copied to clipboard

The override cases in this model.

Link copied to clipboard

The parent model.

Link copied to clipboard

The textures of this model.

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.