Companion

object Companion

Functions

Link copied to clipboard
@Contract(value = "-> new", pure = true)
fun builder(): ItemStack.Builder

Creates a new builder for building an item stack.

Link copied to clipboard
@Contract(pure = true)
fun empty(): ItemStack

Gets the empty item stack.

Link copied to clipboard
@Contract(value = "_ -> new", pure = true)
fun of(type: ItemType): ItemStack

Creates a new item stack with the given type.

@Contract(value = "_, _ -> new", pure = true)
fun of(type: ItemType, amount: Int): ItemStack

Creates a new item stack with the given type and amount.