ItemStack

interface ItemStack

Minimal stack of an ItemType.

Design note

Metadata is modeled as a string-keyed map to avoid committing to a host NBT/JSON/etc system.

ID note

The type key is an opaque string identifier; IDs like Cloth_Block_Wool_Blue are valid.

Properties

Link copied to clipboard
abstract val amount: Int
Link copied to clipboard
abstract val meta: Map<String, String>
Link copied to clipboard
abstract val type: Key