Skip to content

BlockRule 5.46.0 ​

final class · pocketmine\world\generator\vanilla\surface\rule\BlockRule · source

Extends MaterialRule

"minecraft:block"

Properties ​

$material ​

php
public readonly int $material

Methods ​

__construct() ​

php
public function __construct(int $material)

apply() ​

php
public function apply(\pocketmine\world\generator\vanilla\surface\MaterialContext $c) : int

compile() ​

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

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.