Select

@Serializable
@SerialName(value = "minecraft:select")
data class Select(val property: ItemModel.Select.Property, val cases: List<ItemModel.Select.Case>, val fallback: ItemModel? = null, val blockStateProperty: String? = null, val locale: String = "", val timeZone: String? = null, val pattern: String? = null, val index: Int = 0, val component: Key? = null) : ItemModel

Constructors

Link copied to clipboard
constructor(property: ItemModel.Select.Property, cases: List<ItemModel.Select.Case>, fallback: ItemModel? = null, blockStateProperty: String? = null, locale: String = "", timeZone: String? = null, pattern: String? = null, index: Int = 0, component: Key? = null)

Types

Link copied to clipboard
@Serializable
data class Case(val when: List<JsonElement>, val model: ItemModel)
Link copied to clipboard

Properties

Link copied to clipboard
@SerialName(value = "block_state_property")
val blockStateProperty: String? = null
Link copied to clipboard
Link copied to clipboard
val component: Key? = null
Link copied to clipboard
val fallback: ItemModel? = null
Link copied to clipboard
val index: Int = 0
Link copied to clipboard
Link copied to clipboard
val pattern: String? = null
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "time_zone")
val timeZone: String? = null