shrink

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

Shrinks the amount of this item stack by the given amount and returns the resulting item stack.

This will calculate the new amount by taking the given amount away from the current ItemStack.amount.

Return

the resulting item stack

Parameters

amount

the amount to shrink by