Skip to content

WaterCondition 5.46.0 ​

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

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) : 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.