WeatherCycleWorldData 5.46.0
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() : boolReturns whether the weather changes by itself (gamerule doweathercycle).
setWeatherCycleEnabled()
php
public function setWeatherCycleEnabled(bool $enabled) : void