Skip to content

Predicates 5.46.0 ​

final class · pocketmine\world\generator\vanilla\feature\Predicates · source

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) : \Closure

fluidMatches() ​

php
public static function fluidMatches(\pocketmine\world\generator\vanilla\feature\block\JavaBlocks $blocks, int $state, array $fluids) : bool

fluidSet() ​

php
public static function fluidSet(mixed $json) : array

Fluid 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) : \Closure

Rule tests (structure processors and ore targets): test(state, random, y).

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