Bukkit-API
1.7.9-R0.2
The inofficial Bukkit-API
|
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 () |
![]() | |
EntityEvent (final Entity what) | |
Entity | getEntity () |
EntityType | getEntityType () |
![]() | |
Event () | |
Event (boolean isAsync) | |
String | getEventName () |
abstract HandlerList | getHandlers () |
final boolean | isAsynchronous () |
Static Public Member Functions | |
static HandlerList | getHandlerList () |
Additional Inherited Members | |
![]() | |
Entity | entity |
Called when a LivingEntity shoots a bow firing an arrow
Definition at line 13 of file EntityShootBowEvent.java.
ItemStack org.bukkit.event.entity.EntityShootBowEvent.getBow | ( | ) |
Gets the bow ItemStack used to fire the arrow.
Definition at line 37 of file EntityShootBowEvent.java.
float org.bukkit.event.entity.EntityShootBowEvent.getForce | ( | ) |
Gets the force the arrow was launched with
Definition at line 64 of file EntityShootBowEvent.java.
Entity org.bukkit.event.entity.EntityShootBowEvent.getProjectile | ( | ) |
Gets the projectile which will be launched by this event
Definition at line 46 of file EntityShootBowEvent.java.
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
Implements org.bukkit.event.Cancellable.
Definition at line 68 of file EntityShootBowEvent.java.
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.
cancel | true if you wish to cancel this event |
Implements org.bukkit.event.Cancellable.
Definition at line 72 of file EntityShootBowEvent.java.
void org.bukkit.event.entity.EntityShootBowEvent.setProjectile | ( | Entity | projectile | ) |
Replaces the projectile which will be launched
projectile | the new projectile |
Definition at line 55 of file EntityShootBowEvent.java.