Skip to content

NetherPortal ​

class · pocketmine\block\NetherPortal · source

Extends Transparent

Properties ​

$axis protected ​

php
protected int $axis

Methods ​

describeBlockOnlyState() protected ​

php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : void

getAxis() ​

php
public function getAxis() : int

getDrops() ​

php
public function getDrops(\pocketmine\item\Item $item) : array

getLightLevel() ​

php
public function getLightLevel() : int

getSupportType() ​

php
public function getSupportType(int $facing) : \pocketmine\block\utils\SupportType

hasEntityCollision() 5.46.0 ​

php
public function hasEntityCollision() : bool

isSolid() ​

php
public function isSolid() : bool

onEntityInside() ​

php
public function onEntityInside(\pocketmine\entity\Entity $entity) : bool

onNearbyBlockChange() 5.46.0 ​

php
public function onNearbyBlockChange() : void

A portal block needs portal blocks of the same axis or obsidian above, below and on both sides along its axis; otherwise it breaks, and the neighbour updates break the rest of the portal.

recalculateCollisionBoxes() protected ​

php
protected function recalculateCollisionBoxes() : array

setAxis() ​

php
public function setAxis(int $axis) : self

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