|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
org.bukkit.event.entity.EntityShootBowEvent
public class EntityShootBowEvent
Called when a LivingEntity shoots a bow firing an arrow
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.bukkit.event.Event |
|---|
Event.Result |
| Field Summary |
|---|
| Fields inherited from class org.bukkit.event.entity.EntityEvent |
|---|
entity |
| Constructor Summary | |
|---|---|
EntityShootBowEvent(LivingEntity shooter,
ItemStack bow,
Projectile projectile,
float force)
|
|
| Method Summary | |
|---|---|
ItemStack |
getBow()
Gets the bow ItemStack used to fire the arrow; is null if the shooter is a skeleton |
LivingEntity |
getEntity()
Returns the Entity involved in this event |
float |
getForce()
Gets the force the arrow was launched with |
static HandlerList |
getHandlerList()
|
HandlerList |
getHandlers()
|
Entity |
getProjectile()
Gets the projectile which will be launched by this event |
boolean |
isCancelled()
Gets the cancellation state of this event. |
void |
setCancelled(boolean cancel)
Sets the cancellation state of this event. |
void |
setProjectile(Entity projectile)
Replaces the projectile which will be launched |
| Methods inherited from class org.bukkit.event.entity.EntityEvent |
|---|
getEntityType |
| Methods inherited from class org.bukkit.event.Event |
|---|
getEventName, isAsynchronous |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EntityShootBowEvent(LivingEntity shooter,
ItemStack bow,
Projectile projectile,
float force)
| Method Detail |
|---|
public LivingEntity getEntity()
EntityEvent
getEntity in class EntityEventpublic ItemStack getBow()
public Entity getProjectile()
public void setProjectile(Entity projectile)
projectile - the new projectilepublic float getForce()
public boolean isCancelled()
Cancellable
isCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
Cancellable
setCancelled in interface Cancellablecancel - true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||