pocketmine\event\player\PlayerMoveEvent::__construct PHP Method

__construct() public method

public __construct ( Player $player, Location $from, Location $to )
$player pocketmine\Player
$from pocketmine\level\Location
$to pocketmine\level\Location
    public function __construct(Player $player, Location $from, Location $to)
    {
        $this->player = $player;
        $this->from = $from;
        $this->to = $to;
    }