Skip to content

MaterialPalette 5.46.0 ​

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

Small integer ids for the Java block ids produced by material rules, stored in TerrainChunk::$materials. The terrain stage materials (Aquifer::MATERIAL_*) keep their ids; MATERIAL_STONE is the default block of the noise settings (stone, netherrack, end stone).

Methods ​

__construct() ​

php
public function __construct(string $defaultBlock = "minecraft:stone")

get() ​

php
public function get(string $blockId) : ?int

getNames() ​

php
public function getNames() : array

register() ​

php
public function register(string $blockId) : int

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