Contents
Class SprintStaminaRegenDelay
java.lang.Object
com.hypixel.hytale.server.core.modules.entity.stamina.SprintStaminaRegenDelay
- All Implemented Interfaces:
Resource<EntityStore>, Cloneable
-
Field Summary
Fields inherited from interface Resource
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionclone()intgetIndex()floatgetValue()booleanhasDelay()static voidvoidSets an empty regen delay effect on the resource and marks it as valid.toString()voidupdate(int statIndex, float statValue) Sets the regen delay settings held by the resource and marks it as valid.booleanvalidate()
-
Constructor Details
-
SprintStaminaRegenDelay
public SprintStaminaRegenDelay() -
SprintStaminaRegenDelay
-
-
Method Details
-
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
- Specified by:
clonein interfaceResource<EntityStore>- Returns:
- a clone instance of the original resource instance.
-
toString
-
invalidateResources
public static void invalidateResources()
-