Contents
Class InFluidCondition
java.lang.Object
com.hypixel.hytale.server.core.modules.entity.condition.Condition
com.hypixel.hytale.server.core.modules.entity.condition.InFluidCondition
A condition that checks whether the entity's bounding box overlaps any block position
containing a fluid matching one of the configured fluid IDs or tags.
Returns true when at least one block within the entity's bounding box contains
a matching fluid.
-
Field Summary
Fields -
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
-
-
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
-