Class WeatherTracker
java.lang.Object
com.hypixel.hytale.builtin.weather.components.WeatherTracker
- All Implemented Interfaces:
Component<EntityStore>,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate booleanprivate final Vector3iprivate final UpdateWeatherFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()clone()booleanstatic ComponentType<EntityStore, WeatherTracker> intintvoidsendWeatherIndex(PlayerRef playerRef, int weatherIndex, float transitionSeconds) voidsetWeatherIndex(PlayerRef playerRef, int weatherIndex) voidupdateEnvironment(TransformComponent transformComponent, ComponentAccessor<EntityStore> componentAccessor) voidupdateWeather(PlayerRef playerRef, WeatherResource weatherComponent, TransformComponent transformComponent, float transitionSeconds, ComponentAccessor<EntityStore> componentAccessor) Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.Component
cloneSerializable
-
Field Details
-
updateWeather
-
previousBlockPosition
-
environmentId
private int environmentId -
firstSendForWorld
private boolean firstSendForWorld
-
-
Constructor Details
-
WeatherTracker
public WeatherTracker() -
WeatherTracker
-
-
Method Details
-
getComponentType
-
updateWeather
public void updateWeather(@Nonnull PlayerRef playerRef, @Nonnull WeatherResource weatherComponent, @Nonnull TransformComponent transformComponent, float transitionSeconds, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
sendWeatherIndex
public void sendWeatherIndex(@Nonnull PlayerRef playerRef, int weatherIndex, float transitionSeconds) -
consumeFirstSendForWorld
public boolean consumeFirstSendForWorld() -
clear
public void clear() -
updateEnvironment
public void updateEnvironment(@Nonnull TransformComponent transformComponent, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
getEnvironmentId
public int getEnvironmentId() -
getWeatherIndex
public int getWeatherIndex() -
setWeatherIndex
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Overrides:
clonein classObject
-