ItemAndComponents

data class ItemAndComponents(val item: Item, val componentChanges: DataComponentPatch) : Record

Represents the "id" of ItemStack. ItemStacks with same Item and DataComponentPatch can be merged.

Constructors

Link copied to clipboard
constructor(item: Item, componentChanges: DataComponentPatch)
constructor(itemStack: ItemStack)

Properties

Link copied to clipboard
val componentChanges: DataComponentPatch
Link copied to clipboard
val item: Item

Functions

Link copied to clipboard
fun toItemStack(count: Int): ItemStack