Skip to content

WeatherCycleWorldData 5.46.0 ​

interface · pocketmine\world\format\io\WeatherCycleWorldData · source

Extends WorldData

World data which stores the doweathercycle gamerule. Kept out of WorldData so that world providers written by plugins against the original interface keep working; worlds whose data doesn't implement it always have the weather cycle enabled.

Methods ​

isWeatherCycleEnabled() ​

php
public function isWeatherCycleEnabled() : bool

Returns whether the weather changes by itself (gamerule doweathercycle).

setWeatherCycleEnabled() ​

php
public function setWeatherCycleEnabled(bool $enabled) : void

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