Skip to content

StoneDepthCondition 5.46.0 ​

final class · pocketmine\world\generator\vanilla\surface\condition\StoneDepthCondition · source

Extends MaterialCondition

"minecraft:stone_depth": the block is within a depth of the floor (solid blocks above it, up to air or fluid) or of the ceiling (solid blocks below it).

Methods ​

__construct() ​

php
public function __construct(int $offset, bool $addSurfaceDepth, int $secondaryDepthRange, bool $ceiling)

compile() ​

php
public function compile(\pocketmine\world\generator\vanilla\surface\MaterialRuleCompiler $compiler) : string

test() ​

php
public function test(\pocketmine\world\generator\vanilla\surface\MaterialContext $c) : bool

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