WorldCreationOptions
in package
Represents user-customizable settings for world creation
Table of Contents
- $difficulty : int
- $generatorClass : string
- $generatorOptions : string
- $seed : int
- $spawnPosition : Vector3
- __construct() : mixed
- create() : self
- getDifficulty() : int
- getGeneratorClass() : string
- getGeneratorOptions() : string
- getSeed() : int
- getSpawnPosition() : Vector3
- setDifficulty() : $this
- setGeneratorClass() : $this
- setGeneratorOptions() : $this
- setSeed() : $this
- setSpawnPosition() : $this
Properties
$difficulty
private
int
$difficulty
= \pocketmine\world\World::DIFFICULTY_NORMAL
$generatorClass
private
string
$generatorClass
= \pocketmine\world\generator\normal\Normal::class
Tags
$generatorOptions
private
string
$generatorOptions
= ""
$seed
private
int
$seed
$spawnPosition
private
Vector3
$spawnPosition
Methods
__construct()
public
__construct() : mixed
Return values
mixed —create()
public
static create() : self
Return values
self —getDifficulty()
public
getDifficulty() : int
Return values
int —getGeneratorClass()
public
getGeneratorClass() : string
Tags
Return values
string —getGeneratorOptions()
public
getGeneratorOptions() : string
Return values
string —getSeed()
public
getSeed() : int
Return values
int —getSpawnPosition()
public
getSpawnPosition() : Vector3
Return values
Vector3 —setDifficulty()
public
setDifficulty(int $difficulty) : $this
Parameters
- $difficulty : int
Return values
$this —setGeneratorClass()
public
setGeneratorClass(string $generatorClass) : $this
Parameters
- $generatorClass : string
Tags
Return values
$this —setGeneratorOptions()
public
setGeneratorOptions(string $generatorOptions) : $this
Parameters
- $generatorOptions : string
Return values
$this —setSeed()
public
setSeed(int $seed) : $this
Parameters
- $seed : int
Return values
$this —setSpawnPosition()
public
setSpawnPosition(Vector3 $spawnPosition) : $this
Parameters
- $spawnPosition : Vector3