Skip to content

Cactus ​

class · pocketmine\block\Cactus · source

Extends Transparent
Implements Ageable

Constants ​

MAX_AGE ​

php
public const MAX_AGE = 15

MAX_HEIGHT ​

php
public const MAX_HEIGHT = 3

Methods ​

getCompostabilityChance() 5.46.0 ​

php
public function getCompostabilityChance() : int

getSupportType() ​

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

hasEntityCollision() ​

php
public function hasEntityCollision() : bool

onEntityInside() ​

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

onRandomTick() ​

php
public function onRandomTick() : void

recalculateCollisionBoxes() protected ​

php
protected function recalculateCollisionBoxes() : array

ticksRandomly() ​

php
public function ticksRandomly() : bool

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