Contents
Class RegeneratingValue
java.lang.Object
com.hypixel.hytale.server.core.modules.entitystats.RegeneratingValue
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatregenerate(ComponentAccessor<EntityStore> store, Ref<EntityStore> ref, Instant currentTime, float dt, EntityStatValue value, float currentAmount) booleanshouldRegenerate(ComponentAccessor<EntityStore> store, Ref<EntityStore> ref, Instant currentTime, float dt, EntityStatType.Regenerating regenerating) toString()
-
Constructor Details
-
RegeneratingValue
-
-
Method Details
-
shouldRegenerate
public boolean shouldRegenerate(@Nonnull ComponentAccessor<EntityStore> store, @Nonnull Ref<EntityStore> ref, @Nonnull Instant currentTime, float dt, @Nonnull EntityStatType.Regenerating regenerating) -
regenerate
public float regenerate(@Nonnull ComponentAccessor<EntityStore> store, @Nonnull Ref<EntityStore> ref, @Nonnull Instant currentTime, float dt, @Nonnull EntityStatValue value, float currentAmount) - Returns:
- the amount the stat changed
-
getRegenerating
-
toString
-