PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
|
Public Member Functions | |
__construct (Living $shooter, private Item $bow, Projectile $projectile, private float $force) | |
call () | |
getBow () | |
getEntity () | |
getEventName () | |
getForce () | |
getProjectile () | |
isCancelled () | |
setForce (float $force) | |
setProjectile (Entity $projectile) | |
Static Public Member Functions | |
static | hasHandlers () |
Protected Attributes | |
Entity | $entity |
string | $eventName = null |
@phpstan-extends EntityEvent<Living>
Definition at line 37 of file EntityShootBowEvent.php.
pocketmine\event\entity\EntityShootBowEvent::__construct | ( | Living | $shooter, |
private Item | $bow, | ||
Projectile | $projectile, | ||
private float | $force ) |
Definition at line 42 of file EntityShootBowEvent.php.
|
inherited |
pocketmine\event\entity\EntityShootBowEvent::getBow | ( | ) |
Definition at line 59 of file EntityShootBowEvent.php.
pocketmine\event\entity\EntityShootBowEvent::getEntity | ( | ) |
Reimplemented from pocketmine\event\entity\EntityEvent.
Definition at line 55 of file EntityShootBowEvent.php.
References pocketmine\event\entity\EntityEvent\$entity.
pocketmine\event\entity\EntityShootBowEvent::getForce | ( | ) |
Definition at line 81 of file EntityShootBowEvent.php.
pocketmine\event\entity\EntityShootBowEvent::getProjectile | ( | ) |
Returns the entity considered as the projectile in this event.
NOTE: This might not return a Projectile if a plugin modified the target entity.
Definition at line 68 of file EntityShootBowEvent.php.
|
staticinherited |
|
inherited |
Returns whether this instance of the event is currently cancelled.
If it is cancelled, only downstream handlers that declare @handleCancelled
will be called with this event.
pocketmine\event\entity\EntityShootBowEvent::setForce | ( | float | $force | ) |
Definition at line 85 of file EntityShootBowEvent.php.
pocketmine\event\entity\EntityShootBowEvent::setProjectile | ( | Entity | $projectile | ) |
Definition at line 72 of file EntityShootBowEvent.php.
|
protectedinherited |
@phpstan-var TEntity
Definition at line 37 of file EntityEvent.php.
Referenced by pocketmine\event\entity\EntityDamageByBlockEvent\__construct(), pocketmine\event\entity\EntityDamageByChildEntityEvent\__construct(), pocketmine\event\entity\EntityDamageByEntityEvent\__construct(), pocketmine\event\entity\EntityDamageEvent\__construct(), pocketmine\event\entity\EntityDeathEvent\__construct(), pocketmine\event\entity\EntityExplodeEvent\__construct(), pocketmine\event\player\PlayerDeathEvent\__construct(), pocketmine\event\entity\EntityDeathEvent\getEntity(), pocketmine\event\entity\EntityEvent\getEntity(), pocketmine\event\entity\EntityShootBowEvent\getEntity(), pocketmine\event\entity\ItemDespawnEvent\getEntity(), pocketmine\event\entity\ItemSpawnEvent\getEntity(), pocketmine\event\entity\ProjectileHitEvent\getEntity(), and pocketmine\event\entity\ProjectileLaunchEvent\getEntity().
|
protectedinherited |