Skip to content

MaterialCondition 5.46.0 ​

abstract class · pocketmine\world\generator\vanilla\surface\condition\MaterialCondition · source

Condition of a material rule (worldgen/material_condition), evaluated for the block in the context.

Methods ​

compile() ​

php
abstract public function compile(\pocketmine\world\generator\vanilla\surface\MaterialRuleCompiler $compiler) : string

PHP expression with the same value as test(), for MaterialRuleCompiler ($c, $x, $y, $z and $b are in scope).

test() ​

php
abstract 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.