EndPortalRing 5.46.0
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\Vector3Finds 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) : arraygetInteriorPositions()
php
public static function getInteriorPositions(\pocketmine\math\Vector3 $center) : arraytryActivate()
php
public static function tryActivate(\pocketmine\world\World $world, \pocketmine\math\Vector3 $framePos) : boolLights the portal of the ring the given frame belongs to, if the ring is complete. Returns whether a portal was lit.
