Skip to content

NormalNoiseParameters 5.46.0 ​

final class · pocketmine\world\generator\vanilla\noise\NormalNoiseParameters · source

Parameters of a "normal noise" (two offset octave stacks), as found in worldgen/noise/*.json (ported from misode/deepslate NormalNoise, MIT).

Constants ​

NORMALIZE_DISABLED ​

php
public const NORMALIZE_DISABLED = 0

NORMALIZE_ENABLED ​

php
public const NORMALIZE_ENABLED = 1

NORMALIZE_LEGACY ​

php
public const NORMALIZE_LEGACY = 2

Properties ​

$amplitudeModifiers ​

php
public readonly array $amplitudeModifiers

$baseAmplitude ​

php
public readonly float $baseAmplitude

$baseOctave ​

php
public readonly int $baseOctave

$normalize ​

php
public readonly int $normalize

$octaveCount ​

php
public readonly int $octaveCount

Methods ​

__construct() ​

php
public function __construct(float $baseAmplitude, int $baseOctave, int $octaveCount, int $normalize, array $amplitudeModifiers)

create() ​

php
public function create(\pocketmine\world\generator\vanilla\random\RandomSource $random) : \pocketmine\world\generator\vanilla\noise\NoiseStack

createLegacyNetherBiome() ​

php
public function createLegacyNetherBiome(\pocketmine\world\generator\vanilla\random\RandomSource $random) : \pocketmine\world\generator\vanilla\noise\NoiseStack

Legacy initialization of the Nether biome noises (worlds with a legacy random source): each stack is made of sequentially seeded octaves, skipping the unused ones (octave 0 down to the first octave), from one random.

getNormalizationFactor() ​

php
public function getNormalizationFactor() : float

getOctaves() ​

php
public function getOctaves() : array

Octaves with a non-zero amplitude: [octave index, frequency, amplitude].

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