SensorWeather

public class SensorWeather extends SensorBase

Class SensorWeather. Provides sensorweather functionality for the Hytale server.

java.lang.Object > SensorBase > SensorWeather

Field Summary

prevWeatherIndex

protected int prevWeatherIndex

Field prevWeatherIndex.

cachedResult

protected boolean cachedResult

Field cachedResult.

weatherIndex

final int weatherIndex

Field weatherIndex.

weatherAssetId

final String weatherAssetId

Field weatherAssetId.

Method Detail

SensorWeather

public public SensorWeather (@Nonnull final BuilderSensorWeather builder, @Nonnull final BuilderSupport support)

Method SensorWeather.

Parameters:
@Nonnull final BuilderSensorWeather builder
@Nonnull final BuilderSupport support

matches

public boolean matches (@Nonnull final Ref ref, @Nonnull final Role role, final double dt, @Nonnull final Store store)

Method matches.

Parameters:
@Nonnull final Ref ref
@Nonnull final Role role
final double dt
@Nonnull final Store store

getSensorInfo

public InfoProvider getSensorInfo ()

Method getSensorInfo.

matchesWeather

protected boolean matchesWeather (@Nullable final String weather)

Method matchesWeather.

Parameters:
@Nullable final String weather