Data
data class Data(val item: EffectiveItem, val velocity: Double = 1.5, val consumeOnThrow: Boolean = true, val throwSound: Sound? = Sound.ENTITY_SNOWBALL_THROW, val onHit: (ProjectileHitEvent) -> Unit)
Throw configuration for one item.
Constructors
Link copied to clipboard
constructor(item: EffectiveItem, velocity: Double = 1.5, consumeOnThrow: Boolean = true, throwSound: Sound? = Sound.ENTITY_SNOWBALL_THROW, onHit: (ProjectileHitEvent) -> Unit)