SculkCatalyst 5.46.0
Extends Opaque
Sculk catalyst (https://minecraft.wiki/w/Sculk_Catalyst), ported from Java's SculkCatalystBlock(Entity).
When a mob which drops experience dies within 8 blocks (the closest catalyst wins), the catalyst absorbs the experience instead of letting it drop, blooms (the "bloom" state for 8 ticks, soul particles and sound) and spreads sculk, sculk veins and occasionally sensors and shriekers from where the mob died, with as much charge as experience (see \pocketmine\block\utils\SculkSpreader). The charges move every other tick through scheduled block updates of the catalyst; they are kept in memory only.
Constants
BLOOM_TICKS
php
public const BLOOM_TICKS = 8Properties
$bloom protected
php
protected bool $bloomMethods
absorbExperience()
php
public function absorbExperience(int $x, int $y, int $z, int $xp) : voidAbsorbs the experience of a mob which died near the catalyst: the sculk charge starts at the given position.
describeBlockOnlyState() protected
php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : voidgetDropsForCompatibleTool()
php
public function getDropsForCompatibleTool(\pocketmine\item\Item $item) : arraygetLightLevel()
php
public function getLightLevel() : intgetXpDropAmount()
php
public function getXpDropAmount() : intisAffectedBySilkTouch()
php
public function isAffectedBySilkTouch() : boolisBlooming()
php
public function isBlooming() : boolonNearbyBlockChange()
php
public function onNearbyBlockChange() : voidonScheduledUpdate()
php
public function onScheduledUpdate() : voidsetBlooming()
php
public function setBlooming(bool $bloom) : self