Skip to content

Generator ​

abstract class · pocketmine\world\generator\Generator · source

Properties ​

$preset ​

php
public string $preset

$random protected ​

php
protected \pocketmine\utils\Random $random

$seed ​

php
public int $seed

Methods ​

__construct() ​

php
public function __construct(int $seed, string $preset)

convertSeed() ​

php
public static function convertSeed(string $seed) : ?int

Converts a string world seed into an integer for use by the generator.

generateChunk() ​

php
abstract public function generateChunk(\pocketmine\world\ChunkManager $world, int $chunkX, int $chunkZ) : void

populateChunk() ​

php
abstract public function populateChunk(\pocketmine\world\ChunkManager $world, int $chunkX, int $chunkZ) : void

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