Skip to content

EndPortalRing 5.46.0 ​

final class · pocketmine\world\dimension\EndPortalRing · source

The ring of twelve End portal frames (three per side) around a 3x3 hole. When every frame holds an eye of ender, the hole fills with End portal blocks. Simplification: vanilla also requires each frame to face the centre; only the positions and the eyes are checked.

Methods ​

findCompleteRing() ​

php
public static function findCompleteRing(\pocketmine\world\World $world, \pocketmine\math\Vector3 $framePos) : ?\pocketmine\math\Vector3

Finds the centre of a complete ring the frame at the given position is part of.

getFramePositions() ​

php
public static function getFramePositions(\pocketmine\math\Vector3 $center) : array

getInteriorPositions() ​

php
public static function getInteriorPositions(\pocketmine\math\Vector3 $center) : array

tryActivate() ​

php
public static function tryActivate(\pocketmine\world\World $world, \pocketmine\math\Vector3 $framePos) : bool

Lights the portal of the ring the given frame belongs to, if the ring is complete. Returns whether a portal was lit.

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