Class Condition
java.lang.Object
com.hypixel.hytale.server.core.modules.entitystats.asset.condition.Condition
- Direct Known Subclasses:
AliveCondition,ChargingCondition,EntityStatBoundCondition,EnvironmentCondition,GlidingCondition,LogicCondition,NoDamageTakenCondition,OutOfCombatCondition,PlayerCondition,RegenHealthCondition,SprintingCondition,SuffocatingCondition,WieldingCondition
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final BuilderCodec<Condition> static final CodecMapCodec<Condition> protected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanallConditionsMet(ComponentAccessor<EntityStore> componentAccessor, Ref<EntityStore> ref, Instant currentTime, Condition[] conditions) static booleanallConditionsMet(ComponentAccessor<EntityStore> componentAccessor, Ref<EntityStore> ref, Instant currentTime, EntityStatType.Regenerating regenerating) booleaneval(ComponentAccessor<EntityStore> componentAccessor, Ref<EntityStore> ref, Instant currentTime) abstract booleaneval0(ComponentAccessor<EntityStore> var1, Ref<EntityStore> var2, Instant var3) toString()
-
Field Details
-
CODEC
-
BASE_CODEC
-
inverse
protected boolean inverse
-
-
Constructor Details
-
Condition
protected Condition() -
Condition
public Condition(boolean inverse)
-
-
Method Details
-
eval
public boolean eval(@Nonnull ComponentAccessor<EntityStore> componentAccessor, @Nonnull Ref<EntityStore> ref, @Nonnull Instant currentTime) -
eval0
public abstract boolean eval0(@Nonnull ComponentAccessor<EntityStore> var1, @Nonnull Ref<EntityStore> var2, @Nonnull Instant var3) -
allConditionsMet
public static boolean allConditionsMet(@Nonnull ComponentAccessor<EntityStore> componentAccessor, @Nonnull Ref<EntityStore> ref, @Nonnull Instant currentTime, @Nonnull EntityStatType.Regenerating regenerating) -
allConditionsMet
public static boolean allConditionsMet(@Nonnull ComponentAccessor<EntityStore> componentAccessor, @Nonnull Ref<EntityStore> ref, @Nonnull Instant currentTime, @Nonnull Condition[] conditions) -
toString
-