WeatherTracker

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 PlayerRef playerRef
@Nonnull final WeatherResource weatherComponent
@Nonnull final TransformComponent transformComponent
final float transitionSeconds
@Nonnull final ComponentAccessor componentAccessor

sendWeatherIndex

public void sendWeatherIndex (@Nonnull final PlayerRef playerRef, int weatherIndex, final float transitionSeconds)

Method sendWeatherIndex.

Parameters:
@Nonnull final PlayerRef playerRef
int weatherIndex
final float transitionSeconds

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 TransformComponent transformComponent
@Nonnull final ComponentAccessor componentAccessor

getEnvironmentId

public int getEnvironmentId ()

Method getEnvironmentId.

getWeatherIndex

public int getWeatherIndex ()

Method getWeatherIndex.

setWeatherIndex

public void setWeatherIndex (@Nonnull final PlayerRef playerRef, final int weatherIndex)

Method setWeatherIndex.

Parameters:
@Nonnull final PlayerRef playerRef
final int weatherIndex

clone

public Component clone ()

Method clone.