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, setEntitypublic EntityLaunchProjectileEvent(Entity entity, Projectile projectile, Entity target)
public Projectile projectile()
public boolean isIgnored()
isIgnored in interface CancellableisIgnored in class EntityEventpublic void cancel(boolean cancelled)
cancel in interface Cancellablecancel in class EntityEventcancelled - set the cancellation state of the eventCopyright © 2016. All rights reserved.