Skip to content

BlendedNoise 5.46.0 ​

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

The "old blended noise" (base 3D terrain noise): two limit noises blended by a main noise, each made of y-smeared Perlin octaves (ported from misode/deepslate BlendedNoise/SmearedPerlinNoise, MIT).

Properties ​

$amplitudes ​

php
public array $amplitudes

$frequencies ​

php
public array $frequencies

$fudgeScales ​

php
public array $fudgeScales

$maxValue ​

php
public float $maxValue

$noises ​

php
public array $noises

Flattened layers of the three stacks: [0] min limit, [1] max limit, [2] main.

$smearScaleMultiplier ​

php
public readonly float $smearScaleMultiplier

$xzFactor ​

php
public readonly float $xzFactor

$xzMultiplier ​

php
public float $xzMultiplier

$xzScale ​

php
public readonly float $xzScale

$yFactor ​

php
public readonly float $yFactor

$yMultiplier ​

php
public float $yMultiplier

$yScale ​

php
public readonly float $yScale

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\generator\vanilla\random\RandomSource $random, float $xzScale, float $yScale, float $xzFactor, float $yFactor, float $smearScaleMultiplier)

sample() ​

php
public function sample(float $x, float $y, float $z) : float

sampleSmeared() ​

php
public static function sampleSmeared(\pocketmine\world\generator\vanilla\noise\ImprovedNoise $o, float $x, float $y, float $z, float $fudgeScale) : float

stack() ​

php
public function stack(int $s, float $x, float $y, float $z) : float

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