WaterCondition 5.46.0
Extends MaterialCondition
"minecraft:water": no fluid above the floor, or the block is above the fluid surface plus an offset.
Methods
__construct()
php
public function __construct(int $offset, int $surfaceDepthMultiplier, bool $addStoneDepth)compile()
php
public function compile(\pocketmine\world\generator\vanilla\surface\MaterialRuleCompiler $compiler) : stringtest()
php
public function test(\pocketmine\world\generator\vanilla\surface\MaterialContext $c) : bool