Class SprintStaminaRegenDelay

java.lang.Object
com.hypixel.hytale.server.core.modules.entity.stamina.SprintStaminaRegenDelay
All Implemented Interfaces:
Resource<EntityStore>, Cloneable

public class SprintStaminaRegenDelay extends Object implements Resource<EntityStore>
  • Constructor Details

    • SprintStaminaRegenDelay

      public SprintStaminaRegenDelay()
    • SprintStaminaRegenDelay

      public SprintStaminaRegenDelay(@Nonnull SprintStaminaRegenDelay other)
  • Method Details

    • getResourceType

      public static ResourceType<EntityStore, SprintStaminaRegenDelay> getResourceType()
    • getIndex

      public int getIndex()
    • getValue

      public float getValue()
    • validate

      public boolean validate()
    • hasDelay

      public boolean hasDelay()
    • markEmpty

      public void markEmpty()
      Sets an empty regen delay effect on the resource and marks it as valid.
    • update

      public void update(int statIndex, float statValue)
      Sets the regen delay settings held by the resource and marks it as valid.
      Parameters:
      statIndex - The EntityStat index that this resource applies to.
      statValue - The EntityStat value that this resource applies.
    • clone

      @Nonnull public Resource<EntityStore> clone()
      Specified by:
      clone in interface Resource<EntityStore>
      Returns:
      a clone instance of the original resource instance.

    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object
    • invalidateResources

      public static void invalidateResources()