Cancellablepublic class ProjectileCollideEvent extends EntityEvent implements Cancellable
This event is called before EntityDamageByEntityEvent, and cancelling it will allow the projectile to continue flying
Event.Resultentity| Constructor | Description |
|---|---|
ProjectileCollideEvent(Projectile what,
Entity collidedWith) |
| Modifier and Type | Method | Description |
|---|---|---|
Entity |
getCollidedWith() |
Get the entity the projectile collided with
|
Projectile |
getEntity() |
Get the projectile that collided
|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
boolean |
isCancelled() |
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel) |
Sets the cancellation state of this event.
|
getEntityTypecallEvent, getEventName, isAsynchronouspublic ProjectileCollideEvent(Projectile what, Entity collidedWith)
public Entity getCollidedWith()
public Projectile getEntity()
getEntity in class EntityEventpublic static HandlerList getHandlerList()
public HandlerList getHandlers()
getHandlers in class Eventpublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this eventCopyright © 2019. All rights reserved.