Class RegeneratingValue
java.lang.Object
com.hypixel.hytale.server.core.modules.entitystats.RegeneratingValue
-
Field Summary
Fields -
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()
-
Field Details
-
regenerating
-
remainingUntilRegen
private float remainingUntilRegen
-
-
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) -
getRegenerating
-
toString
-