PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
pocketmine\world\generator\ThreadLocalGeneratorContext Class Reference
+ Collaboration diagram for pocketmine\world\generator\ThreadLocalGeneratorContext:

Public Member Functions

 __construct (private Generator $generator, private int $worldMinY, private int $worldMaxY)
 
 getGenerator ()
 
 getWorldMaxY ()
 
 getWorldMinY ()
 

Static Public Member Functions

static fetch (int $worldId)
 
static register (self $context, int $worldId)
 
static unregister (int $worldId)
 

Detailed Description

Manages thread-local caches for generators and the things needed to support them

Definition at line 29 of file ThreadLocalGeneratorContext.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\world\generator\ThreadLocalGeneratorContext::__construct ( private Generator  $generator,
private int  $worldMinY,
private int  $worldMaxY 
)

Definition at line 48 of file ThreadLocalGeneratorContext.php.

Member Function Documentation

◆ fetch()

static pocketmine\world\generator\ThreadLocalGeneratorContext::fetch ( int  $worldId)
static

Definition at line 44 of file ThreadLocalGeneratorContext.php.

◆ getGenerator()

pocketmine\world\generator\ThreadLocalGeneratorContext::getGenerator ( )

Definition at line 54 of file ThreadLocalGeneratorContext.php.

◆ getWorldMaxY()

pocketmine\world\generator\ThreadLocalGeneratorContext::getWorldMaxY ( )

Definition at line 58 of file ThreadLocalGeneratorContext.php.

◆ getWorldMinY()

pocketmine\world\generator\ThreadLocalGeneratorContext::getWorldMinY ( )

Definition at line 56 of file ThreadLocalGeneratorContext.php.

◆ register()

static pocketmine\world\generator\ThreadLocalGeneratorContext::register ( self  $context,
int  $worldId 
)
static

Definition at line 36 of file ThreadLocalGeneratorContext.php.

◆ unregister()

static pocketmine\world\generator\ThreadLocalGeneratorContext::unregister ( int  $worldId)
static

Definition at line 40 of file ThreadLocalGeneratorContext.php.


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