Skip to content

ThreadLocalGeneratorContext ​

final class · pocketmine\world\generator\executor\ThreadLocalGeneratorContext · source

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

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\generator\Generator $generator, int $worldMinY, int $worldMaxY)

fetch() ​

php
public static function fetch(int $worldId) : ?self

getGenerator() ​

php
public function getGenerator() : \pocketmine\world\generator\Generator

getWorldMaxY() ​

php
public function getWorldMaxY() : int

getWorldMinY() ​

php
public function getWorldMinY() : int

register() ​

php
public static function register(self $context, int $worldId) : void

unregister() ​

php
public static function unregister(int $worldId) : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.