WeatherState
Immutable, persistence-safe snapshot of one world's current weather.
Bedriox\Api\World\WeatherState
classBedriox\Api\World
Public methods
__construct(Bedriox\Api\World\WeatherType $type, int $remainingTicks)Typed public method.
static fromCommandDuration(Bedriox\Api\World\WeatherType $type, int $seconds): selfTyped public method.
isRaining(): boolTyped public method.
isThundering(): boolTyped public method.
rainLevel(): floatCanonical Bedrock level.dat rainLevel projection.
lightningLevel(): floatCanonical Bedrock level.dat lightningLevel projection.
withRemainingTicks(int $remainingTicks): selfTyped public method.
Constants
TICKS_PER_SECONDMINIMUM_COMMAND_DURATION_SECONDSMAXIMUM_COMMAND_DURATION_SECONDSMAXIMUM_DURATION_TICKS
