Skip to content

WorldCreationOptions ​

final class · pocketmine\world\WorldCreationOptions · source

Represents user-customizable settings for world creation

Methods ​

__construct() ​

php
public function __construct()

create() ​

php
public static function create() : self

getDifficulty() ​

php
public function getDifficulty() : int

getGeneratorClass() ​

php
public function getGeneratorClass() : string

getGeneratorOptions() ​

php
public function getGeneratorOptions() : string

getSeed() ​

php
public function getSeed() : int

getSpawnPosition() ​

php
public function getSpawnPosition() : \pocketmine\math\Vector3

setDifficulty() ​

php
public function setDifficulty(int $difficulty) : self

setGeneratorClass() ​

php
public function setGeneratorClass(string $generatorClass) : self

setGeneratorOptions() ​

php
public function setGeneratorOptions(string $generatorOptions) : self

setSeed() ​

php
public function setSeed(int $seed) : self

setSpawnPosition() ​

php
public function setSpawnPosition(\pocketmine\math\Vector3 $spawnPosition) : self

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