Skip to content

SculkCatalyst 5.46.0 ​

class · pocketmine\block\SculkCatalyst · source

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 = 8

Properties ​

$bloom protected ​

php
protected bool $bloom

Methods ​

absorbExperience() ​

php
public function absorbExperience(int $x, int $y, int $z, int $xp) : void

Absorbs 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) : void

getDropsForCompatibleTool() ​

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

getLightLevel() ​

php
public function getLightLevel() : int

getXpDropAmount() ​

php
public function getXpDropAmount() : int

isAffectedBySilkTouch() ​

php
public function isAffectedBySilkTouch() : bool

isBlooming() ​

php
public function isBlooming() : bool

onNearbyBlockChange() ​

php
public function onNearbyBlockChange() : void

onScheduledUpdate() ​

php
public function onScheduledUpdate() : void

setBlooming() ​

php
public function setBlooming(bool $bloom) : self

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