jvm Companion¶ object Companion Functions¶ create¶ fun create(): NBTHolder Creates a standalone NBTHolder not backed by any particular ItemStack/FluidStack. fluid¶ fun fluid(stack: FluidStack): NBTHolder Creates an NBTHolder whose fields are persisted to stack's NBT. fun <R> fluid(stack: FluidStack, block: NBTHolder.() -> R): R Creates an NBTHolder for stack and immediately runs block against it. item¶ fun item(stack: ItemStack): NBTHolder Creates an NBTHolder whose fields are persisted to stack's NBT. fun <R> item(stack: ItemStack, block: NBTHolder.() -> R): R Creates an NBTHolder for stack and immediately runs block against it.