PocketMine-MP 5.27.2 git-1ea5c060fdd23023857cdc7f874a6562d117a72d
Loading...
Searching...
No Matches
pocketmine\world\generator\FlatGeneratorOptions Class Reference
+ Collaboration diagram for pocketmine\world\generator\FlatGeneratorOptions:

Public Member Functions

 __construct (private array $structure, private int $biomeId, private array $extraOptions=[])
 
 getBiomeId ()
 
 getExtraOptions ()
 
 getStructure ()
 

Static Public Member Functions

static parseLayers (string $layers)
 
static parsePreset (string $presetString)
 

Detailed Description

Definition at line 39 of file FlatGeneratorOptions.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\world\generator\FlatGeneratorOptions::__construct ( private array $structure,
private int $biomeId,
private array $extraOptions = [] )
Parameters
int[]$structure
mixed[]$extraOptions@phpstan-param array<int, int> $structure @phpstan-param array<string, array<string, string>|true> $extraOptions

Definition at line 47 of file FlatGeneratorOptions.php.

Member Function Documentation

◆ getBiomeId()

pocketmine\world\generator\FlatGeneratorOptions::getBiomeId ( )

Definition at line 59 of file FlatGeneratorOptions.php.

◆ getExtraOptions()

pocketmine\world\generator\FlatGeneratorOptions::getExtraOptions ( )
Returns
mixed[] @phpstan-return array<string, array<string, string>|true>

Definition at line 65 of file FlatGeneratorOptions.php.

◆ getStructure()

pocketmine\world\generator\FlatGeneratorOptions::getStructure ( )
Returns
int[] @phpstan-return array<int, int>

Definition at line 57 of file FlatGeneratorOptions.php.

◆ parseLayers()

static pocketmine\world\generator\FlatGeneratorOptions::parseLayers ( string $layers)
static
Returns
int[] @phpstan-return array<int, int>
Exceptions
InvalidGeneratorOptionsException

Definition at line 73 of file FlatGeneratorOptions.php.

◆ parsePreset()

static pocketmine\world\generator\FlatGeneratorOptions::parsePreset ( string $presetString)
static
Exceptions
InvalidGeneratorOptionsException

Definition at line 100 of file FlatGeneratorOptions.php.

Referenced by pocketmine\world\generator\Flat\__construct().

+ Here is the caller graph for this function:

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