PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\event\entity\EntityShootBowEvent Class Reference
+ Inheritance diagram for pocketmine\event\entity\EntityShootBowEvent:
+ Collaboration diagram for pocketmine\event\entity\EntityShootBowEvent:

Public Member Functions

 __construct (Living $shooter, Item $bow, Projectile $projectile, $force)
 
 getEntity ()
 
 getBow ()
 
 getProjectile ()
 
 setProjectile (Entity $projectile)
 
 getForce ()
 
 setForce ($force)
 
 getEventName ()
 
 getHandlers ()
 
 isCancelled ()
 
 setCancelled ($forceCancel=false)
 

Static Public Attributes

static $handlerList = null
 
static $eventPool = []
 
static $nextEvent = 0
 

Protected Attributes

 $entity
 
 $eventName = null
 

Detailed Description

Definition at line 30 of file EntityShootBowEvent.php.

Constructor & Destructor Documentation

pocketmine\event\entity\EntityShootBowEvent::__construct ( Living  $shooter,
Item  $bow,
Projectile  $projectile,
  $force 
)
Parameters
Living$shooter
Item$bow
Projectile$projectile
float$force

Definition at line 48 of file EntityShootBowEvent.php.

Member Function Documentation

pocketmine\event\entity\EntityShootBowEvent::getBow ( )
Returns
Item

Definition at line 65 of file EntityShootBowEvent.php.

pocketmine\event\entity\EntityShootBowEvent::getEntity ( )
Returns
Living

Definition at line 58 of file EntityShootBowEvent.php.

pocketmine\event\Event::getEventName ( )
finalinherited
Returns
string

Definition at line 45 of file Event.php.

References pocketmine\event\Event\$eventName.

Referenced by pocketmine\plugin\PluginManager\callEvent().

+ Here is the caller graph for this function:

pocketmine\event\entity\EntityShootBowEvent::getForce ( )
Returns
float

Definition at line 92 of file EntityShootBowEvent.php.

pocketmine\event\Event::getHandlers ( )
inherited
Returns
HandlerList

Definition at line 82 of file Event.php.

Referenced by pocketmine\plugin\PluginManager\callEvent().

+ Here is the caller graph for this function:

pocketmine\event\entity\EntityShootBowEvent::getProjectile ( )
Returns
Entity

Definition at line 72 of file EntityShootBowEvent.php.

pocketmine\event\entity\EntityShootBowEvent::setForce (   $force)
Parameters
float$force

Definition at line 99 of file EntityShootBowEvent.php.

pocketmine\event\entity\EntityShootBowEvent::setProjectile ( Entity  $projectile)
Parameters
Entity$projectile

Definition at line 79 of file EntityShootBowEvent.php.

Member Data Documentation

pocketmine\event\Event::$eventName = null
protectedinherited

Any callable event must declare the static variable

public static $handlerList = null; public static $eventPool = []; public static $nextEvent = 0;

Not doing so will deny the proper event initialization

Definition at line 39 of file Event.php.

Referenced by pocketmine\event\Event\getEventName().


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