withAmount

@Contract(value = "_ -> new", pure = true)
abstract fun withAmount(amount: Int): ItemStack

Creates a new item stack with the given amount.

Return

a new item stack

Parameters

amount

the new amount