Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.entity.EntityShootBowEvent Class Reference
Inheritance diagram for org.bukkit.event.entity.EntityShootBowEvent:
org.bukkit.event.entity.EntityEvent org.bukkit.event.Cancellable org.bukkit.event.Event

Public Member Functions

 EntityShootBowEvent (final LivingEntity shooter, final ItemStack bow, final Projectile projectile, final float force)
 
LivingEntity getEntity ()
 
ItemStack getBow ()
 
Entity getProjectile ()
 
void setProjectile (Entity projectile)
 
float getForce ()
 
boolean isCancelled ()
 
void setCancelled (boolean cancel)
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.entity.EntityEvent
 EntityEvent (final Entity what)
 
Entity getEntity ()
 
EntityType getEntityType ()
 
- Public Member Functions inherited from org.bukkit.event.Event
 Event ()
 
 Event (boolean isAsync)
 
String getEventName ()
 
abstract HandlerList getHandlers ()
 
final boolean isAsynchronous ()
 

Static Public Member Functions

static HandlerList getHandlerList ()
 

Additional Inherited Members

- Protected Attributes inherited from org.bukkit.event.entity.EntityEvent
Entity entity
 

Detailed Description

Called when a LivingEntity shoots a bow firing an arrow

Definition at line 13 of file EntityShootBowEvent.java.

Member Function Documentation

ItemStack org.bukkit.event.entity.EntityShootBowEvent.getBow ( )

Gets the bow ItemStack used to fire the arrow.

Returns
the bow involved in this event

Definition at line 37 of file EntityShootBowEvent.java.

37  {
38  return bow;
39  }
float org.bukkit.event.entity.EntityShootBowEvent.getForce ( )

Gets the force the arrow was launched with

Returns
bow shooting force, up to 1.0

Definition at line 64 of file EntityShootBowEvent.java.

64  {
65  return force;
66  }
Entity org.bukkit.event.entity.EntityShootBowEvent.getProjectile ( )

Gets the projectile which will be launched by this event

Returns
the launched projectile

Definition at line 46 of file EntityShootBowEvent.java.

46  {
47  return projectile;
48  }
boolean org.bukkit.event.entity.EntityShootBowEvent.isCancelled ( )

Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins

Returns
true if this event is cancelled

Implements org.bukkit.event.Cancellable.

Definition at line 68 of file EntityShootBowEvent.java.

68  {
69  return cancelled;
70  }
void org.bukkit.event.entity.EntityShootBowEvent.setCancelled ( boolean  cancel)

Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.

Parameters
canceltrue if you wish to cancel this event

Implements org.bukkit.event.Cancellable.

Definition at line 72 of file EntityShootBowEvent.java.

72  {
73  cancelled = cancel;
74  }
void org.bukkit.event.entity.EntityShootBowEvent.setProjectile ( Entity  projectile)

Replaces the projectile which will be launched

Parameters
projectilethe new projectile

Definition at line 55 of file EntityShootBowEvent.java.

55  {
56  this.projectile = projectile;
57  }

The documentation for this class was generated from the following file: