BedrioxDOCUMENTATION
API CLASS

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): self

Typed public method.

isRaining(): bool

Typed public method.

isThundering(): bool

Typed public method.

rainLevel(): float

Canonical Bedrock level.dat rainLevel projection.

lightningLevel(): float

Canonical Bedrock level.dat lightningLevel projection.

withRemainingTicks(int $remainingTicks): self

Typed public method.

Constants

TICKS_PER_SECONDMINIMUM_COMMAND_DURATION_SECONDSMAXIMUM_COMMAND_DURATION_SECONDSMAXIMUM_DURATION_TICKS

View exact source ↗