Predicates 5.46.0
Parsers of vanilla's block predicates (worldgen) and rule tests (ore targets, structure processors).
Methods
block()
php
public static function block(\pocketmine\world\generator\vanilla\feature\block\JavaBlocks $blocks, mixed $json) : \ClosurefluidMatches()
php
public static function fluidMatches(\pocketmine\world\generator\vanilla\feature\block\JavaBlocks $blocks, int $state, array $fluids) : boolfluidSet()
php
public static function fluidSet(mixed $json) : arrayFluid holder set: "minecraft:water" (source only), "minecraft:flowing_water", "#minecraft:water" (both)...
rule()
php
public static function rule(\pocketmine\world\generator\vanilla\feature\block\JavaBlocks $blocks, mixed $json) : \ClosureRule tests (structure processors and ore targets): test(state, random, y).
