withoutItem

@Contract(value = "_ -> new", pure = true)
abstract fun withoutItem(index: Int): BundleMeta

Creates new item metadata with the item at the given index removed from the items list.

Return

new item metadata

Parameters

index

the index of the item to remove

Throws

if the index would result in an out of bounds exception, i.e. when it is too small or too big


@Contract(value = "_ -> new", pure = true)
abstract fun withoutItem(item: ItemStack): BundleMeta

Creates new item metadata with the given item removed from the items list.

Return

new item metadata

Parameters

item

the item to remove