public class EntityShootBowEvent extends Object implements EntityEvent, Cancellable
| Constructor and Description |
|---|
EntityShootBowEvent(Entity shooter,
ItemStack bow,
Entity projectile,
float force) |
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelpublic Entity getEntity()
getEntity in interface EntityEventpublic ItemStack 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–2020 NukkitX. All rights reserved.