public class EntityShootBowEvent extends Object implements EntityEvent, Cancellable
| Constructor and Description |
|---|
EntityShootBowEvent(Entity shooter,
ItemInstance bow,
Entity projectile,
float force) |
| Modifier and Type | Method and Description |
|---|---|
ItemInstance |
getBow() |
Entity |
getEntity() |
float |
getForce() |
Entity |
getProjectile() |
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
void |
setForce(float force) |
void |
setProjectile(Entity projectile) |
public EntityShootBowEvent(Entity shooter, ItemInstance bow, Entity projectile, float force)
public Entity getEntity()
getEntity in interface EntityEventpublic ItemInstance getBow()
public Entity getProjectile()
public void setProjectile(Entity projectile)
public float getForce()
public void setForce(float force)
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true to cancel the event.Copyright © 2017–2018 NukkitX. All rights reserved.