Skip to content

MaterialRuleParser 5.46.0 ​

final class · pocketmine\world\generator\vanilla\surface\MaterialRuleParser · source

Builds material rules and conditions from the worldgen/material_rule and worldgen/material_condition JSON (26.3+ format; registry references are resolved and shared).

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\generator\vanilla\WorldgenData $data, \pocketmine\world\generator\vanilla\DensityFunctionParser $densityParser, \pocketmine\world\generator\vanilla\random\PositionalRandomFactory $random, \pocketmine\world\generator\vanilla\surface\MaterialPalette $palette, array $biomeIndexes, \pocketmine\world\generator\vanilla\surface\InterpolationCache $interpolati …

condition() ​

php
public function condition(mixed $json) : \pocketmine\world\generator\vanilla\surface\condition\MaterialCondition

rule() ​

php
public function rule(mixed $json) : \pocketmine\world\generator\vanilla\surface\rule\MaterialRule

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