pocketmine\level\Position::__construct PHP Method

__construct() public method

public __construct ( integer $x, integer $y, integer $z, Level $level = null )
$x integer
$y integer
$z integer
$level Level
    public function __construct($x = 0, $y = 0, $z = 0, Level $level = null)
    {
        $this->x = $x;
        $this->y = $y;
        $this->z = $z;
        $this->level = $level;
    }

Usage Example

Ejemplo n.º 1
0
 public function __construct(Inventory $inventory, Position $pos)
 {
     $this->inventory = $inventory;
     parent::__construct($pos->x, $pos->y, $pos->z, $pos->level);
 }