PocketMine-MP 5.44.4 git-bc94a0da0c87abe7eb99d229a9ec672b3c405d11
Loading...
Searching...
No Matches
pocketmine\world\generator\GeneratorManagerEntry Class Reference
+ Collaboration diagram for pocketmine\world\generator\GeneratorManagerEntry:

Public Member Functions

 __construct (private string $generatorClass, private \Closure $presetValidator, private readonly bool $fast, private ?\Closure $spawnPositionProvider=null)
 
 getGeneratorClass ()
 
 getSpawnPosition (int $seed)
 
 isFast ()
 
 validateGeneratorOptions (string $generatorOptions)
 

Detailed Description

Definition at line 28 of file GeneratorManagerEntry.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\world\generator\GeneratorManagerEntry::__construct ( private string $generatorClass,
private \Closure $presetValidator,
private readonly bool $fast,
private ?\Closure $spawnPositionProvider = null )

@phpstan-param class-string<Generator> $generatorClass @phpstan-param \Closure(string) : ?InvalidGeneratorOptionsException $presetValidator @phpstan-param (\Closure(int) : ?Vector3)|null $spawnPositionProvider

Definition at line 35 of file GeneratorManagerEntry.php.

Member Function Documentation

◆ getGeneratorClass()

pocketmine\world\generator\GeneratorManagerEntry::getGeneratorClass ( )

@phpstan-return class-string<Generator>

Definition at line 43 of file GeneratorManagerEntry.php.

◆ getSpawnPosition()

pocketmine\world\generator\GeneratorManagerEntry::getSpawnPosition ( int $seed)

Definition at line 56 of file GeneratorManagerEntry.php.

◆ isFast()

pocketmine\world\generator\GeneratorManagerEntry::isFast ( )

Definition at line 45 of file GeneratorManagerEntry.php.

◆ validateGeneratorOptions()

pocketmine\world\generator\GeneratorManagerEntry::validateGeneratorOptions ( string $generatorOptions)
Exceptions
InvalidGeneratorOptionsException

Definition at line 50 of file GeneratorManagerEntry.php.


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