Skip to content

YAboveCondition 5.46.0 ​

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

Extends MaterialCondition

"minecraft:y_above": the block (optionally plus its stone depth) is at or above an anchor plus a surface depth multiple.

Methods ​

__construct() ​

php
public function __construct(int $anchorY, int $surfaceDepthMultiplier, bool $addStoneDepth)

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.