Skip to content

VanillaSpawnRulesFetchTask 5.46.0 ​

final class · pocketmine\world\mobs\spawn\VanillaSpawnRulesFetchTask · source

Extends AsyncTask

Downloads Mojang's spawn rules (see VanillaSpawnRules::fetch()) on an async worker: about 60 small files (270 KB), a few seconds once per Bedrock version.

Methods ​

__construct() ​

php
public function __construct(string $directory)

onCompletion() ​

php
public function onCompletion() : void

onRun() ​

php
public function onRun() : void

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