Interface ProjectileHitEvent
- All Superinterfaces:
Cancellable, Event
Fired when a projectile hits an entity or a block. Cancelling it lets the projectile fly on as
if it had hit nothing.
- Since:
- 0.1.0
-
Method Summary
Modifier and TypeMethodDescriptionhitBlock()Returns the block hit, ornullwhen an entity was hit.Returns the entity hit, ornullwhen a block was hit.Returns the projectile.Methods inherited from interface Cancellable
isCancelled, setCancelled
-
Method Details
-
projectile
-
hitEntity
-
hitBlock
@Nullable BlockPosition hitBlock()Returns the block hit, ornullwhen an entity was hit.- Returns:
- the block hit, or
nullwhen an entity was hit - Since:
- 0.1.0
-