PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
pocketmine\world\format\io\WorldData Interface Reference
+ Inheritance diagram for pocketmine\world\format\io\WorldData:
+ Collaboration diagram for pocketmine\world\format\io\WorldData:

Public Member Functions

 getDifficulty ()
 
 getGenerator ()
 
 getGeneratorOptions ()
 
 getLightningLevel ()
 
 getLightningTime ()
 
 getName ()
 
 getRainLevel ()
 
 getRainTime ()
 
 getSeed ()
 
 getSpawn ()
 
 getTime ()
 
 save ()
 
 setDifficulty (int $difficulty)
 
 setLightningLevel (float $level)
 
 setLightningTime (int $ticks)
 
 setName (string $value)
 
 setRainLevel (float $level)
 
 setRainTime (int $ticks)
 
 setSpawn (Vector3 $pos)
 
 setTime (int $value)
 

Detailed Description

Definition at line 28 of file WorldData.php.

Member Function Documentation

◆ getDifficulty()

pocketmine\world\format\io\WorldData::getDifficulty ( )

Returns the world difficulty. This will be one of the World constants.

Implemented in pocketmine\world\format\io\data\BedrockWorldData, and pocketmine\world\format\io\data\JavaWorldData.

◆ getGenerator()

pocketmine\world\format\io\WorldData::getGenerator ( )

Returns the generator name

Implemented in pocketmine\world\format\io\data\BaseNbtWorldData.

◆ getLightningLevel()

pocketmine\world\format\io\WorldData::getLightningLevel ( )

◆ getLightningTime()

pocketmine\world\format\io\WorldData::getLightningTime ( )

Returns the time in ticks to the next lightning level change.

Implemented in pocketmine\world\format\io\data\BedrockWorldData, and pocketmine\world\format\io\data\JavaWorldData.

◆ getRainLevel()

pocketmine\world\format\io\WorldData::getRainLevel ( )

◆ getRainTime()

pocketmine\world\format\io\WorldData::getRainTime ( )

Returns the time in ticks to the next rain level change.

Implemented in pocketmine\world\format\io\data\BedrockWorldData, and pocketmine\world\format\io\data\JavaWorldData.

◆ save()

pocketmine\world\format\io\WorldData::save ( )

Saves information about the world state, such as weather, time, etc.

Implemented in pocketmine\world\format\io\data\BedrockWorldData, and pocketmine\world\format\io\data\JavaWorldData.

◆ setDifficulty()

pocketmine\world\format\io\WorldData::setDifficulty ( int  $difficulty)

◆ setLightningLevel()

pocketmine\world\format\io\WorldData::setLightningLevel ( float  $level)

◆ setLightningTime()

pocketmine\world\format\io\WorldData::setLightningTime ( int  $ticks)

Sets the time in ticks to the next lightning level change.

Implemented in pocketmine\world\format\io\data\BedrockWorldData, and pocketmine\world\format\io\data\JavaWorldData.

◆ setRainLevel()

pocketmine\world\format\io\WorldData::setRainLevel ( float  $level)

◆ setRainTime()

pocketmine\world\format\io\WorldData::setRainTime ( int  $ticks)

Sets the time in ticks to the next rain level change.

Implemented in pocketmine\world\format\io\data\BedrockWorldData, and pocketmine\world\format\io\data\JavaWorldData.


The documentation for this interface was generated from the following file: