withoutProjectile

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

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

Return

new item metadata

Parameters

index

the index of the projectile 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 withoutProjectile(projectile: ItemStack): CrossbowMeta

Creates new item metadata with the given projectile removed from the projectiles list.

Return

new item metadata

Parameters

projectile

the projectile to remove