api
a9eff54633
jvm
api
/
org.kryptonmc.api.item
/
ItemStack
/
withAmount
with
Amount
@
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