EndGateway 5.46.0
Extends Spawnable
Block entity of an End gateway: where it leads. Without an exit, a gateway in the End looks for one on the outer islands the first time it is used (see \pocketmine\world\dimension\EndGatewayTravel).
Constants
TAG_AGE
php
public const TAG_AGE = "Age"TAG_EXACT_TELEPORT
php
public const TAG_EXACT_TELEPORT = "ExactTeleport"TAG_EXIT_PORTAL
php
public const TAG_EXIT_PORTAL = "ExitPortal"Methods
addAdditionalSpawnData() protected
php
protected function addAdditionalSpawnData(\pocketmine\nbt\tag\CompoundTag $nbt) : voidgetExitPortal()
php
public function getExitPortal() : ?\pocketmine\math\Vector3isExactTeleport()
php
public function isExactTeleport() : boolreadSaveData()
php
public function readSaveData(\pocketmine\nbt\tag\CompoundTag $nbt) : voidsetExitPortal()
php
public function setExitPortal(?\pocketmine\math\Vector3 $exitPortal, bool $exact = false) : voidSets where the gateway leads. With $exact the entities arrive at that very block, otherwise on top of the highest block around it.
writeSaveData() protected
php
protected function writeSaveData(\pocketmine\nbt\tag\CompoundTag $nbt) : void