public class WeatherTracker implements Component
Class WeatherTracker. Provides weathertracker functionality for the Hytale server.
java.lang.Object > WeatherTracker
Field Summary
environmentId
private
int
environmentId
Field environmentId.
firstSendForWorld
private
boolean
firstSendForWorld
Field firstSendForWorld.
forcedWeatherIndex
final
int
forcedWeatherIndex
Field forcedWeatherIndex.
weatherIndexForEnvironment
final
int
weatherIndexForEnvironment
Field weatherIndexForEnvironment.
vector
final
Vector3d
vector
Field vector.
blockX
final
int
blockX
Field blockX.
blockY
final
int
blockY
Field blockY.
blockZ
final
int
blockZ
Field blockZ.
chunkRef
final
Ref
chunkRef
Field chunkRef.
world
final
World
world
Field world.
chunkStore
final
Store
chunkStore
Field chunkStore.
blockChunkComponent
final
BlockChunk
blockChunkComponent
Field blockChunkComponent.
y
final
int
y
Field y.
Method Detail
getComponentType
public
WeatherTracker>
getComponentType
()
Method getComponentType.
WeatherTracker
public
public
WeatherTracker
()
Method WeatherTracker.
updateWeather
public
void
updateWeather
(@Nonnull final PlayerRef playerRef, @Nonnull final WeatherResource weatherComponent, @Nonnull final TransformComponent transformComponent, final float transitionSeconds, @Nonnull final ComponentAccessor componentAccessor)
Method updateWeather.
- Parameters:
@Nonnull final PlayerRefplayerRef@Nonnull final WeatherResourceweatherComponent@Nonnull final TransformComponenttransformComponentfinal floattransitionSeconds@Nonnull final ComponentAccessorcomponentAccessor
sendWeatherIndex
public
void
sendWeatherIndex
(@Nonnull final PlayerRef playerRef, int weatherIndex, final float transitionSeconds)
Method sendWeatherIndex.
- Parameters:
@Nonnull final PlayerRefplayerRefintweatherIndexfinal floattransitionSeconds
consumeFirstSendForWorld
public
boolean
consumeFirstSendForWorld
()
Method consumeFirstSendForWorld.
clear
public
void
clear
()
Method clear.
updateEnvironment
public
void
updateEnvironment
(@Nonnull final TransformComponent transformComponent, @Nonnull final ComponentAccessor componentAccessor)
Method updateEnvironment.
- Parameters:
@Nonnull final TransformComponenttransformComponent@Nonnull final ComponentAccessorcomponentAccessor
getEnvironmentId
public
int
getEnvironmentId
()
Method getEnvironmentId.
getWeatherIndex
public
int
getWeatherIndex
()
Method getWeatherIndex.
setWeatherIndex
Method setWeatherIndex.
- Parameters:
@Nonnull final PlayerRefplayerReffinal intweatherIndex