Skip to content

EntityTeleportEvent ​

class · pocketmine\event\entity\EntityTeleportEvent · source

Extends EntityEvent
Implements Cancellable

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\Entity $entity, \pocketmine\world\Position $from, \pocketmine\world\Position $to)

getFrom() ​

php
public function getFrom() : \pocketmine\world\Position

getTo() ​

php
public function getTo() : \pocketmine\world\Position

setTo() ​

php
public function setTo(\pocketmine\world\Position $to) : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.