public class EntityLaunchProjectileEvent extends EntityEvent
Constructor and Description |
---|
EntityLaunchProjectileEvent(Entity entity,
Projectile projectile,
Entity target) |
Modifier and Type | Method and Description |
---|---|
void |
cancel(boolean cancelled) |
Entity |
getTarget()
Gets the Entity the skeleton was targeting when it fired
|
boolean |
isIgnored() |
Projectile |
projectile() |
entity, setEntity
public EntityLaunchProjectileEvent(Entity entity, Projectile projectile, Entity target)
public Projectile projectile()
public boolean isIgnored()
isIgnored
in interface Cancellable
isIgnored
in class EntityEvent
public void cancel(boolean cancelled)
cancel
in interface Cancellable
cancel
in class EntityEvent
cancelled
- set the cancellation state of the eventCopyright © 2016. All rights reserved.