withProjectile

@Contract(value = "_ -> new", pure = true)
abstract fun withProjectile(projectile: ItemStack): CrossbowMeta

Creates new item metadata with the given projectile added to the end of the projectiles list.

Return

new item metadata

Parameters

projectile

the projectile to add