withType

@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