mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
phpdoc armageddon for master, pass 1
This commit is contained in:
@ -41,12 +41,6 @@ class EntityShootBowEvent extends EntityEvent implements Cancellable{
|
||||
/** @var float */
|
||||
private $force;
|
||||
|
||||
/**
|
||||
* @param Living $shooter
|
||||
* @param Item $bow
|
||||
* @param Projectile $projectile
|
||||
* @param float $force
|
||||
*/
|
||||
public function __construct(Living $shooter, Item $bow, Projectile $projectile, float $force){
|
||||
$this->entity = $shooter;
|
||||
$this->bow = $bow;
|
||||
@ -61,9 +55,6 @@ class EntityShootBowEvent extends EntityEvent implements Cancellable{
|
||||
return $this->entity;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Item
|
||||
*/
|
||||
public function getBow() : Item{
|
||||
return $this->bow;
|
||||
}
|
||||
@ -72,16 +63,11 @@ class EntityShootBowEvent extends EntityEvent implements Cancellable{
|
||||
* Returns the entity considered as the projectile in this event.
|
||||
*
|
||||
* NOTE: This might not return a Projectile if a plugin modified the target entity.
|
||||
*
|
||||
* @return Entity
|
||||
*/
|
||||
public function getProjectile() : Entity{
|
||||
return $this->projectile;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Entity $projectile
|
||||
*/
|
||||
public function setProjectile(Entity $projectile) : void{
|
||||
if($projectile !== $this->projectile){
|
||||
if(count($this->projectile->getViewers()) === 0){
|
||||
@ -91,16 +77,10 @@ class EntityShootBowEvent extends EntityEvent implements Cancellable{
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return float
|
||||
*/
|
||||
public function getForce() : float{
|
||||
return $this->force;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param float $force
|
||||
*/
|
||||
public function setForce(float $force) : void{
|
||||
$this->force = $force;
|
||||
}
|
||||
|
Reference in New Issue
Block a user