EntityShootBowEvent
Extends EntityEvent
Implements Cancellable
Methods
__construct()
php
public function __construct(\pocketmine\entity\Living $shooter, \pocketmine\item\Item $bow, \pocketmine\entity\projectile\Projectile $projectile, float $force)getBow()
php
public function getBow() : \pocketmine\item\ItemgetEntity()
php
public function getEntity()getForce()
php
public function getForce() : floatgetProjectile()
php
public function getProjectile() : \pocketmine\entity\EntityReturns the entity considered as the projectile in this event.
NOTE: This might not return a Projectile if a plugin modified the target entity.
setForce()
php
public function setForce(float $force) : voidsetProjectile()
php
public function setProjectile(\pocketmine\entity\Entity $projectile) : void