Generator
in package
Table of Contents
- $preset : string
- $random : Random
- $seed : int
- __construct() : mixed
- convertSeed() : int|null
- Converts a string world seed into an integer for use by the generator.
- generateChunk() : void
- populateChunk() : void
Properties
$preset
protected
string
$preset
$random
protected
Random
$random
$seed
protected
int
$seed
Methods
__construct()
public
__construct(int $seed, string $preset) : mixed
Parameters
- $seed : int
- $preset : string
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
abstract generateChunk(ChunkManager $world, int $chunkX, int $chunkZ) : void
Parameters
- $world : ChunkManager
- $chunkX : int
- $chunkZ : int
Return values
void —populateChunk()
public
abstract populateChunk(ChunkManager $world, int $chunkX, int $chunkZ) : void
Parameters
- $world : ChunkManager
- $chunkX : int
- $chunkZ : int