mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Promote some constructors
This commit is contained in:
@ -26,11 +26,10 @@ namespace pocketmine\inventory;
|
||||
use pocketmine\entity\Human;
|
||||
|
||||
final class PlayerEnderInventory extends SimpleInventory{
|
||||
|
||||
private Human $holder;
|
||||
|
||||
public function __construct(Human $holder, int $size = 27){
|
||||
$this->holder = $holder;
|
||||
public function __construct(
|
||||
private Human $holder,
|
||||
int $size = 27
|
||||
){
|
||||
parent::__construct($size);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user