PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
Loading...
Searching...
No Matches
pocketmine\world\generator\Flat Class Reference
+ Inheritance diagram for pocketmine\world\generator\Flat:
+ Collaboration diagram for pocketmine\world\generator\Flat:

Public Member Functions

 __construct (int $seed, string $preset)
 
 generateChunk (ChunkManager $world, int $chunkX, int $chunkZ)
 
 populateChunk (ChunkManager $world, int $chunkX, int $chunkZ)
 

Static Public Member Functions

static convertSeed (string $seed)
 

Protected Member Functions

 generateBaseChunk ()
 

Protected Attributes

Random $random
 

Detailed Description

Definition at line 35 of file Flat.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\world\generator\Flat::__construct ( int $seed,
string $preset )
Exceptions
InvalidGeneratorOptionsException

Definition at line 45 of file Flat.php.

References pocketmine\world\generator\FlatGeneratorOptions\parsePreset().

+ Here is the call graph for this function:

Member Function Documentation

◆ convertSeed()

static pocketmine\world\generator\Generator::convertSeed ( string $seed)
staticinherited

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

Definition at line 39 of file Generator.php.

◆ generateBaseChunk()

pocketmine\world\generator\Flat::generateBaseChunk ( )
protected

Definition at line 68 of file Flat.php.

◆ generateChunk()

pocketmine\world\generator\Flat::generateChunk ( ChunkManager $world,
int $chunkX,
int $chunkZ )

Reimplemented from pocketmine\world\generator\Generator.

Definition at line 87 of file Flat.php.

◆ populateChunk()

pocketmine\world\generator\Flat::populateChunk ( ChunkManager $world,
int $chunkX,
int $chunkZ )

Reimplemented from pocketmine\world\generator\Generator.

Definition at line 91 of file Flat.php.

Member Data Documentation

◆ $random

Random pocketmine\world\generator\Generator::$random
protectedinherited

Definition at line 51 of file Generator.php.


The documentation for this class was generated from the following file: