BowLogic

interface BowLogic

Defines how Bow behaves.

Inheritors

Types

Link copied to clipboard
object Vanilla : BowLogic

The default bow logic that implements vanilla behavior.

Functions

Link copied to clipboard
abstract fun canDraw(entity: LivingEntity, bow: ItemStack): Boolean

Whether entity can currently draw the bow.

Link copied to clipboard
abstract fun handleDrawTick(entity: LivingEntity, bow: ItemStack, tick: Int)

Called every tick while

Link copied to clipboard
abstract fun shoot(entity: LivingEntity, hand: EquipmentSlot, bow: ItemStack, chargeTime: Int): ItemStack

Shoots a projectile after entity drew the bow for chargeTime ticks.