api
a9eff54633
jvm
api
/
org.kryptonmc.api.item
/
ItemStack
/
withType
with
Type
@
Contract
(
value
=
"_ -> new"
,
pure
=
true
)
abstract
fun
withType
(
type
:
ItemType
)
:
ItemStack
Creates a new item stack with the given
type
.
Return
a new item stack
Parameters
type
the new type