Class IsInStateCondition
java.lang.Object
com.hypixel.hytale.server.npc.decisionmaker.core.conditions.base.Condition
com.hypixel.hytale.server.npc.decisionmaker.core.conditions.base.SimpleCondition
com.hypixel.hytale.server.npc.decisionmaker.core.conditions.IsInStateCondition
- All Implemented Interfaces:
JsonAsset<String>,JsonAssetWithMap<String,IndexedLookupTableAssetMap<String, Condition>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<IsInStateCondition> protected Stringprotected StringFields inherited from class com.hypixel.hytale.server.npc.decisionmaker.core.conditions.base.SimpleCondition
ABSTRACT_CODEC, falseValue, trueValueFields inherited from class com.hypixel.hytale.server.npc.decisionmaker.core.conditions.base.Condition
ALWAYS_TRUE_SIMPLICITY, BASE_CODEC, BOOLEAN_CHECK_SIMPLICITY, CHILD_ASSET_CODEC, CHILD_ASSET_CODEC_ARRAY, data, HIGH_COST_SIMPLICITY, id, NO_TARGET, NORMALISED_CURVE_SIMPLICITY, reference, SCALED_CURVE_SIMPLICITY, VALIDATOR_CACHE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanevaluate(int selfIndex, ArchetypeChunk<EntityStore> archetypeChunk, Ref<EntityStore> target, CommandBuffer<EntityStore> commandBuffer, EvaluationContext context) getState()toString()Methods inherited from class com.hypixel.hytale.server.npc.decisionmaker.core.conditions.base.SimpleCondition
calculateUtility, getSimplicityMethods inherited from class com.hypixel.hytale.server.npc.decisionmaker.core.conditions.base.Condition
getAlwaysTrueFor, getAssetMap, getAssetStore, getId, getReference, setupNPC, setupNPC
-
Field Details
-
CODEC
-
state
-
subState
-
-
Constructor Details
-
IsInStateCondition
protected IsInStateCondition()
-
-
Method Details
-
getState
-
evaluate
protected boolean evaluate(int selfIndex, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, Ref<EntityStore> target, CommandBuffer<EntityStore> commandBuffer, EvaluationContext context) - Specified by:
evaluatein classSimpleCondition
-
toString
- Overrides:
toStringin classSimpleCondition
-