Documentation

Nether extends Generator
in package

Table of Contents

$preset  : string
$random  : Random
$seed  : int
$density  : float
$emptyAmplitude  : int
$emptyHeight  : int
$generationPopulators  : array<string|int, Populator>
$noiseBase  : Simplex
$populators  : array<string|int, Populator>
$waterHeight  : int
__construct()  : mixed
convertSeed()  : int|null
Converts a string world seed into an integer for use by the generator.
generateChunk()  : void
populateChunk()  : void

Properties

$density

private float $density = 0.5

$emptyAmplitude

private int $emptyAmplitude = 1

$emptyHeight

private int $emptyHeight = 64

$generationPopulators

private array<string|int, Populator> $generationPopulators = []

$waterHeight

private int $waterHeight = 32

Methods

convertSeed()

Converts a string world seed into an integer for use by the generator.

public static convertSeed(string $seed) : int|null
Parameters
$seed : string
Return values
int|null

generateChunk()

public generateChunk(ChunkManager $world, int $chunkX, int $chunkZ) : void
Parameters
$world : ChunkManager
$chunkX : int
$chunkZ : int
Return values
void

populateChunk()

public populateChunk(ChunkManager $world, int $chunkX, int $chunkZ) : void
Parameters
$world : ChunkManager
$chunkX : int
$chunkZ : int
Return values
void

Search results