PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
Loading...
Searching...
No Matches
pocketmine\world\WorldCreationOptions Class Reference
+ Collaboration diagram for pocketmine\world\WorldCreationOptions:

Public Member Functions

 getDifficulty ()
 
 getGeneratorClass ()
 
 getGeneratorOptions ()
 
 getSeed ()
 
 getSpawnPosition ()
 
 setDifficulty (int $difficulty)
 
 setGeneratorClass (string $generatorClass)
 
 setGeneratorOptions (string $generatorOptions)
 
 setSeed (int $seed)
 
 setSpawnPosition (Vector3 $spawnPosition)
 

Static Public Member Functions

static create ()
 

Detailed Description

Represents user-customizable settings for world creation

Definition at line 36 of file WorldCreationOptions.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\world\WorldCreationOptions::__construct ( )

Definition at line 45 of file WorldCreationOptions.php.

Member Function Documentation

◆ create()

static pocketmine\world\WorldCreationOptions::create ( )
static

Definition at line 50 of file WorldCreationOptions.php.

◆ getDifficulty()

pocketmine\world\WorldCreationOptions::getDifficulty ( )

Definition at line 75 of file WorldCreationOptions.php.

◆ getGeneratorClass()

pocketmine\world\WorldCreationOptions::getGeneratorClass ( )

@phpstan-return class-string<Generator>

Definition at line 55 of file WorldCreationOptions.php.

◆ getGeneratorOptions()

pocketmine\world\WorldCreationOptions::getGeneratorOptions ( )

Definition at line 83 of file WorldCreationOptions.php.

◆ getSeed()

pocketmine\world\WorldCreationOptions::getSeed ( )

Definition at line 67 of file WorldCreationOptions.php.

◆ getSpawnPosition()

pocketmine\world\WorldCreationOptions::getSpawnPosition ( )

Definition at line 91 of file WorldCreationOptions.php.

◆ setDifficulty()

pocketmine\world\WorldCreationOptions::setDifficulty ( int $difficulty)
Returns
$this

Definition at line 78 of file WorldCreationOptions.php.

◆ setGeneratorClass()

pocketmine\world\WorldCreationOptions::setGeneratorClass ( string $generatorClass)

@phpstan-param class-string<Generator> $generatorClass

Returns
$this

Definition at line 61 of file WorldCreationOptions.php.

◆ setGeneratorOptions()

pocketmine\world\WorldCreationOptions::setGeneratorOptions ( string $generatorOptions)
Returns
$this

Definition at line 86 of file WorldCreationOptions.php.

◆ setSeed()

pocketmine\world\WorldCreationOptions::setSeed ( int $seed)
Returns
$this

Definition at line 70 of file WorldCreationOptions.php.

◆ setSpawnPosition()

pocketmine\world\WorldCreationOptions::setSpawnPosition ( Vector3 $spawnPosition)
Returns
$this

Definition at line 94 of file WorldCreationOptions.php.


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