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 BuilderSensorWeatherbuilder@Nonnull final BuilderSupportsupport
matches
public
boolean
matches
(@Nonnull final Ref ref, @Nonnull final Role role, final double dt, @Nonnull final Store store)
Method matches.
- Parameters:
@Nonnull final Refref@Nonnull final Rolerolefinal doubledt@Nonnull final Storestore
matchesWeather
protected
boolean
matchesWeather
(@Nullable final String weather)
Method matchesWeather.
- Parameters:
@Nullable final Stringweather