PocketMine-MP 5.27.2 git-1ea5c060fdd23023857cdc7f874a6562d117a72d
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)
 
 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: