PocketMine-MP 5.18.1 git-9381fc4172e5dce4cada1cb356050c8a2ab57b94
pocketmine\world\generator\GeneratorManagerEntry Class Reference
+ Collaboration diagram for pocketmine\world\generator\GeneratorManagerEntry:

Public Member Functions

 __construct (private string $generatorClass, private \Closure $presetValidator)
 
 getGeneratorClass ()
 
 validateGeneratorOptions (string $generatorOptions)
 

Detailed Description

Definition at line 26 of file GeneratorManagerEntry.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\world\generator\GeneratorManagerEntry::__construct ( private string  $generatorClass,
private \Closure  $presetValidator 
)

@phpstan-param class-string<Generator> $generatorClass @phpstan-param \Closure(string) : ?InvalidGeneratorOptionsException $presetValidator

Definition at line 32 of file GeneratorManagerEntry.php.

Member Function Documentation

◆ getGeneratorClass()

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

@phpstan-return class-string<Generator>

Definition at line 38 of file GeneratorManagerEntry.php.

◆ validateGeneratorOptions()

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

Definition at line 43 of file GeneratorManagerEntry.php.


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