Flat
extends Generator
in package
Table of Contents
- $preset : string
- $random : Random
- $seed : int
- $chunk : Chunk
- $options : FlatGeneratorOptions
- $populators : array<string|int, Populator>
- __construct() : mixed
- convertSeed() : int|null
- Converts a string world seed into an integer for use by the generator.
- generateChunk() : void
- populateChunk() : void
- generateBaseChunk() : void
Properties
$preset
protected
string
$preset
$random
protected
Random
$random
$seed
protected
int
$seed
$chunk
private
Chunk
$chunk
$options
private
FlatGeneratorOptions
$options
$populators
private
array<string|int, Populator>
$populators
= []
Methods
__construct()
public
__construct(int $seed, string $preset) : mixed
Parameters
- $seed : int
- $preset : string
Tags
Return values
mixed —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 —generateBaseChunk()
protected
generateBaseChunk() : void