Contents
Class StatModifiersManager
java.lang.Object
com.hypixel.hytale.server.core.entity.StatModifiersManager
A stat modifiers manager, which handles the stat modifiers of an entity.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidqueueEntityStatsToClear(int[] entityStatsToClear) Queues the provided entity stats as stats that need to be cleared.voidrecalculateEntityStatModifiers(Ref<EntityStore> ref, EntityStatMap statMap, ComponentAccessor<EntityStore> componentAccessor) Recalculates the entity stat modifiers of the associated entity.voidCalled to schedule the recalculation of the stat modifiers.
-
Constructor Details
-
StatModifiersManager
public StatModifiersManager()
-
-
Method Details
-
scheduleRecalculate
public void scheduleRecalculate()Called to schedule the recalculation of the stat modifiers. -
queueEntityStatsToClear
public void queueEntityStatsToClear(@Nonnull int[] entityStatsToClear) Queues the provided entity stats as stats that need to be cleared.- Parameters:
entityStatsToClear- The array of entity stats to clear.
-
recalculateEntityStatModifiers
public void recalculateEntityStatModifiers(@Nonnull Ref<EntityStore> ref, @Nonnull EntityStatMap statMap, @Nonnull ComponentAccessor<EntityStore> componentAccessor) Recalculates the entity stat modifiers of the associated entity.- Parameters:
ref- The entity reference of the entity.statMap- TheEntityStatMapcomponent of the entity.componentAccessor- TheComponentAccessor<EntityStore>for component access.
-