Skip to content

VanillaDataFetchThread 5.46.0 ​

final class · pocketmine\world\generator\vanilla\VanillaDataFetchThread · source

Extends Thread

Runs VanillaDataFetcher::fetch() away from the main thread (downloads + Mojang's data generator take minutes). Touches the lock file while working so other processes can tell a live job from a dead one.

Methods ​

__construct() ​

php
public function __construct(string $root, \pocketmine\thread\log\ThreadSafeLogger $logger)

getError() ​

php
public function getError() : ?string

isDone() ​

php
public function isDone() : bool

onRun() protected ​

php
protected function onRun() : void

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