Skip to content

EntityShootBowEvent ​

class · pocketmine\event\entity\EntityShootBowEvent · source

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\Item

getEntity() ​

php
public function getEntity()

getForce() ​

php
public function getForce() : float

getProjectile() ​

php
public function getProjectile() : \pocketmine\entity\Entity

Returns 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) : void

setProjectile() ​

php
public function setProjectile(\pocketmine\entity\Entity $projectile) : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.