Companion

object Companion

Functions

Link copied to clipboard
fun isThrowable(item: ItemStack?): Boolean

Whether item belongs to a registered throwable item.

Link copied to clipboard

Registers throw behaviour from a prebuilt Data. No-op if the item is already throwable.

fun makeThrowable(item: EffectiveItem, velocity: Double = 1.5, consumeOnThrow: Boolean = true, throwSound: Sound? = Sound.ENTITY_SNOWBALL_THROW, onHit: (ProjectileHitEvent) -> Unit)

Convenience overload that builds the Data from individual arguments.