Contents
Class SprintingCondition
java.lang.Object
com.hypixel.hytale.server.core.modules.entity.condition.Condition
com.hypixel.hytale.server.core.modules.entity.condition.SprintingCondition
A condition that checks whether the entity is sprinting.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<SprintingCondition> The codec used to parseSprintingConditioninstances. -
Constructor Summary
ConstructorsConstructorDescriptionSprintingCondition(boolean inverse) Default Constructor for aSprintingConditioninstance. -
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 parseSprintingConditioninstances.
-
-
Constructor Details
-
SprintingCondition
public SprintingCondition(boolean inverse) Default Constructor for aSprintingConditioninstance.- Parameters:
inverse- Whether to invert the condition's result.
-
-
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
-