mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
event: modernize property declarations where possible
only private fields are modified; protected ones can't be changed in case someone extended the classes
This commit is contained in:
@ -37,18 +37,16 @@ use function count;
|
||||
class EntityShootBowEvent extends EntityEvent implements Cancellable{
|
||||
use CancellableTrait;
|
||||
|
||||
/** @var Item */
|
||||
private $bow;
|
||||
/** @var Entity */
|
||||
private $projectile;
|
||||
/** @var float */
|
||||
private $force;
|
||||
private Entity $projectile;
|
||||
|
||||
public function __construct(Living $shooter, Item $bow, Projectile $projectile, float $force){
|
||||
public function __construct(
|
||||
Living $shooter,
|
||||
private Item $bow,
|
||||
Projectile $projectile,
|
||||
private float $force
|
||||
){
|
||||
$this->entity = $shooter;
|
||||
$this->bow = $bow;
|
||||
$this->projectile = $projectile;
|
||||
$this->force = $force;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user