ItemStackBuilder

constructor(item: ItemStack)

Creates a builder from an existing ItemStack


constructor(material: Material, amount: Int = 1)

Creates a builder for a new ItemStack with the specified material and amount.

Parameters

material

The material type for the ItemStack

amount

The stack size (default: 1)