Skip to content

NoiseRouter 5.46.0 ​

final class · pocketmine\world\generator\vanilla\NoiseRouter · source

Seed-bound noise router: the density functions that drive terrain, biomes and aquifers (equivalent of vanilla's RandomState for one noise_settings entry: "overworld", "nether", "end"...).

Constants ​

LAVA_LEVEL ​

php
public const LAVA_LEVEL = -54

Below this y the global fluid is lava when the sea level is higher (NoiseBasedChunkGenerator).

Properties ​

$aquiferBarrier ​

php
public readonly ?\pocketmine\world\generator\vanilla\density\DensityFunction $aquiferBarrier

$aquiferExclusion ​

php
public readonly ?\pocketmine\world\generator\vanilla\density\DensityFunction $aquiferExclusion

$aquiferFloodedness ​

php
public readonly ?\pocketmine\world\generator\vanilla\density\DensityFunction $aquiferFloodedness

$aquiferLava ​

php
public readonly ?\pocketmine\world\generator\vanilla\density\DensityFunction $aquiferLava

$aquiferSpread ​

php
public readonly ?\pocketmine\world\generator\vanilla\density\DensityFunction $aquiferSpread

$aquiferSurfaceLevel ​

php
public readonly ?\pocketmine\world\generator\vanilla\density\DensityFunction $aquiferSurfaceLevel

$aquifersEnabled ​

php
public readonly bool $aquifersEnabled

$chunkSurfaceLevel ​

php
public readonly \pocketmine\world\generator\vanilla\density\DensityFunction $chunkSurfaceLevel

$continents ​

php
public readonly \pocketmine\world\generator\vanilla\density\DensityFunction $continents

$defaultBlock ​

php
public readonly string $defaultBlock

Java block id of the default block (stone, netherrack, end_stone).

$defaultFluid ​

php
public readonly string $defaultFluid

Java block id of the default fluid (water, lava, air).

$depth ​

php
public readonly \pocketmine\world\generator\vanilla\density\DensityFunction $depth

$erosion ​

php
public readonly \pocketmine\world\generator\vanilla\density\DensityFunction $erosion

$finalDensity ​

php
public readonly \pocketmine\world\generator\vanilla\density\DensityFunction $finalDensity

$height ​

php
public readonly int $height

$legacyRandom ​

php
public readonly bool $legacyRandom

Whether the noise settings use the legacy (java.util.Random) random source: Nether and End.

$minY ​

php
public readonly int $minY

$parser ​

php
public readonly \pocketmine\world\generator\vanilla\DensityFunctionParser $parser

$random ​

php
public readonly \pocketmine\world\generator\vanilla\random\PositionalRandomFactory $random

$ridges ​

php
public readonly \pocketmine\world\generator\vanilla\density\DensityFunction $ridges

$seaLevel ​

php
public readonly int $seaLevel

$seaMaterial ​

php
public readonly int $seaMaterial

Terrain material of the global fluid below the sea level (Aquifer::MATERIAL_*).

$settingsId ​

php
public readonly string $settingsId

$temperature ​

php
public readonly \pocketmine\world\generator\vanilla\density\DensityFunction $temperature

$vegetation ​

php
public readonly \pocketmine\world\generator\vanilla\density\DensityFunction $vegetation

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\generator\vanilla\WorldgenData $data, int $seed, string $settingsId = "overworld")

createParser() ​

php
public function createParser() : \pocketmine\world\generator\vanilla\DensityFunctionParser

A new parser bound to this router's seed and random source (own noise and named function instances).

globalFluid() ​

php
public function globalFluid(int $y) : int

The global fluid (NoiseBasedChunkGenerator's fluid picker): lava below y -54 when the sea is higher, the default fluid below the sea level, air above. Returns an Aquifer::MATERIAL_* id.

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