- All Implemented Interfaces:
Called when a splash potion hits an area
Nested Class Summary
Method SummaryModifier and TypeMethodDescription
()Gets the AreaEffectCloud spawned
()Returns the Entity involved in this event
()Gets the cancellation state of this event.
(boolean cancel)Whether to cancel the action that occurs when the projectile hits.
Methods inherited from class org.bukkit.event.entity.ProjectileHitEvent
getHitBlock, getHitBlockFace, getHitEntity
getEntityDescription copied from class:
EntityEventReturns the Entity involved in this event
getAreaEffectCloudGets the AreaEffectCloud spawned
- The spawned AreaEffectCloud
isCancelledpublic boolean isCancelled()Description copied from interface:
CancellableGets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins
setCancelledpublic void setCancelled(boolean cancel)Description copied from class:
ProjectileHitEventWhether to cancel the action that occurs when the projectile hits. In the case of an entity, it will not collide (unless it's a firework, then use
In the case of a block, some blocks (eg target block, bell) will not perform the action associated.
This does NOT prevent block collisions, and explosions will still occur unless their respective events are cancelled.