NetherPortalShape 5.46.0
The inside of a rectangular obsidian frame, standing on the X or Z axis. The corners of the frame are not needed.
Constants
MAX_HEIGHT
php
public const MAX_HEIGHT = 21MAX_WIDTH
php
public const MAX_WIDTH = 21MIN_HEIGHT
php
public const MIN_HEIGHT = 3MIN_WIDTH
php
public const MIN_WIDTH = 2Properties
$axis
php
public readonly int $axis$height
php
public readonly int $height$origin
php
public readonly \pocketmine\math\Vector3 $origin$width
php
public readonly int $widthMethods
__construct()
php
public function __construct(\pocketmine\math\Vector3 $origin, int $axis, int $width, int $height)findIgnitable()
php
public static function findIgnitable(\pocketmine\world\World $world, \pocketmine\math\Vector3 $pos) : ?selfFinds an empty frame containing the given position, preferring the X axis like vanilla.
findLit()
php
public static function findLit(\pocketmine\world\World $world, \pocketmine\math\Vector3 $pos) : ?selfFinds the lit portal containing the given portal block.
getArrivalPosition()
php
public function getArrivalPosition() : \pocketmine\math\Vector3Where an entity coming out of this portal appears: the middle of the bottom row.
getInteriorPositions()
php
public function getInteriorPositions() : arrayisFrame()
php
public static function isFrame(\pocketmine\block\Block $block) : boolisIgnitableInterior()
php
public static function isIgnitableInterior(\pocketmine\block\Block $block) : boolBlocks that may fill an unlit frame: fire is replaced too, since lighting the frame places fire in it first.
light()
php
public function light(\pocketmine\world\World $world) : voidFills the frame with portal blocks.
tryLight()
php
public static function tryLight(\pocketmine\world\World $world, \pocketmine\math\Vector3 $pos) : boolLights the empty obsidian frame around the given position, if there is one (used by flint and steel and fire charges before they place fire). Portals can't be lit in the End.
