Skip to content

SpeleothemRules 5.46.0 ​

final class · pocketmine\world\generator\vanilla\feature\block\SpeleothemRules · source

Placement rules of pointed dripstone and sulfur spikes (Java's SpeleothemBlock).

Methods ​

isValidPlacement() ​

php
public static function isValidPlacement(\pocketmine\world\generator\vanilla\feature\FeatureLevel $level, \pocketmine\world\generator\vanilla\feature\block\JavaBlocks $blocks, int $x, int $y, int $z, int $tipDirection, ?int $block = null) : bool

SpeleothemBlock.isValidSpeleothemPlacement(): the block behind the tip is sturdy, or a speleothem of the same block pointing the same way.

isWithDirection() ​

php
public static function isWithDirection(\pocketmine\world\generator\vanilla\feature\block\JavaBlocks $blocks, int $state, int $direction) : bool

Whether the state is a speleothem (pointed dripstone, sulfur spike) pointing in that direction (UP or DOWN).

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