Skip to content

EndGateway 5.46.0 ​

class · pocketmine\block\tile\EndGateway · source

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) : void

getExitPortal() ​

php
public function getExitPortal() : ?\pocketmine\math\Vector3

isExactTeleport() ​

php
public function isExactTeleport() : bool

readSaveData() ​

php
public function readSaveData(\pocketmine\nbt\tag\CompoundTag $nbt) : void

setExitPortal() ​

php
public function setExitPortal(?\pocketmine\math\Vector3 $exitPortal, bool $exact = false) : void

Sets 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

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