Skip to content

NoiseThresholdCondition 5.46.0 ​

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

Extends MaterialCondition

"minecraft:noise_threshold": a noise sampled at (x, 0, z), or at (x, y, z) if is_3d, is within the thresholds.

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\generator\vanilla\noise\NoiseStack $noise, float $minThreshold, float $maxThreshold, bool $is3d)

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.