Class StatModifiersManager

java.lang.Object
com.hypixel.hytale.server.core.entity.StatModifiersManager

public class StatModifiersManager extends Object
A stat modifiers manager, which handles the stat modifiers of an entity.
  • 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 - The EntityStatMap component of the entity.
      componentAccessor - The ComponentAccessor<EntityStore> for component access.