Skip to content

VerticalGradientCondition 5.46.0 ​

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

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 $trueAtAndBelow

Methods ​

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