Contents
Class EncounterWeatherState
java.lang.Object
com.hypixel.hytale.builtin.encountermanager.EncounterWeatherState
- All Implemented Interfaces:
EncounterMemberConsumer, Component<EntityStore>, Cloneable
Per-encounter weather: the sky the encounter wants its members to see, overriding both the world's forced weather
and their own environment. Propagated to current and future members by
EncounterMemberSystems.Tick.-
Field Summary
Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyToPlayer(ComponentAccessor<EntityStore> accessor, Ref<EntityStore> encounterRef, Ref<EntityStore> playerRef) voidclone()voidrevertPlayer(ComponentAccessor<EntityStore> accessor, Ref<EntityStore> encounterRef, Ref<EntityStore> playerRef) voidsetDesiredWeather(int weatherIndex, float transitionSeconds) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializableMethods inherited from interface EncounterMemberConsumer
beginTick, forgetPlayer
-
Constructor Details
-
EncounterWeatherState
public EncounterWeatherState()
-
-
Method Details
-
getComponentType
-
setDesiredWeather
public void setDesiredWeather(int weatherIndex, float transitionSeconds) -
clearDesiredWeather
public void clearDesiredWeather() -
applyToPlayer
public void applyToPlayer(@Nonnull ComponentAccessor<EntityStore> accessor, @Nonnull Ref<EntityStore> encounterRef, @Nonnull Ref<EntityStore> playerRef) - Specified by:
applyToPlayerin interfaceEncounterMemberConsumer
-
revertPlayer
public void revertPlayer(@Nonnull ComponentAccessor<EntityStore> accessor, @Nonnull Ref<EntityStore> encounterRef, @Nonnull Ref<EntityStore> playerRef) - Specified by:
revertPlayerin interfaceEncounterMemberConsumer
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-