VerticalGradientCondition 5.46.0
Extends MaterialCondition
"minecraft:vertical_gradient": always true at and below one level, never at and above another, and with a linearly decreasing positional random chance in between (bedrock floor, deepslate transition).
Properties
$falseAtAndAbove
php
public readonly int $falseAtAndAbove$trueAtAndBelow
php
public readonly int $trueAtAndBelowMethods
__construct()
php
public function __construct(\pocketmine\world\generator\vanilla\random\PositionalRandomFactory $random, int $trueAtAndBelow, int $falseAtAndAbove)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