PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
pocketmine\world\generator\Generator Class Reference
+ Inheritance diagram for pocketmine\world\generator\Generator:
+ Collaboration diagram for pocketmine\world\generator\Generator:

Public Member Functions

 __construct (protected int $seed, protected 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 Attributes

Random $random

Detailed Description

Definition at line 34 of file Generator.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\world\generator\Generator::__construct ( protected int  $seed,
protected string  $preset 

Definition at line 53 of file Generator.php.

Member Function Documentation

◆ convertSeed()

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

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

Definition at line 39 of file Generator.php.

Member Data Documentation

◆ $random

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

Definition at line 51 of file Generator.php.

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