Contents
Class RegenHealthCondition
java.lang.Object
com.hypixel.hytale.server.core.modules.entity.condition.Condition
com.hypixel.hytale.server.core.modules.entity.condition.RegenHealthCondition
A condition that checks whether the entity can regenerate health.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<RegenHealthCondition> The codec used to parseRegenHealthConditioninstances. -
Constructor Summary
ConstructorsConstructorDescriptionRegenHealthCondition(boolean inverse) Constructor for aRegenHealthConditioninstance. -
Method Summary
Modifier and TypeMethodDescriptionbooleaneval0(ComponentAccessor<EntityStore> componentAccessor, Ref<EntityStore> ref, Instant currentTime) The internal evaluation method for the condition.toString()Methods inherited from class Condition
allConditionsMet, allConditionsMet, eval
-
Field Details
-
CODEC
The codec used to parseRegenHealthConditioninstances.
-
-
Constructor Details
-
RegenHealthCondition
public RegenHealthCondition(boolean inverse) Constructor for aRegenHealthConditioninstance.- Parameters:
inverse- Whether to invert the condition.
-
-
Method Details
-
eval0
public boolean eval0(@Nonnull ComponentAccessor<EntityStore> componentAccessor, @Nonnull Ref<EntityStore> ref, @Nonnull Instant currentTime) Description copied from class:ConditionThe internal evaluation method for the condition.- Specified by:
eval0in classCondition- Parameters:
componentAccessor- TheComponentAccessor<EntityStore>for store access.ref- The entity reference of the entity.currentTime- The current world time.- Returns:
trueif the condition is met,falseotherwise.
-
toString
-