Class StateCombatAction
java.lang.Object
com.hypixel.hytale.server.npc.decisionmaker.core.Option
com.hypixel.hytale.builtin.npccombatactionevaluator.evaluator.combatactions.CombatActionOption
com.hypixel.hytale.builtin.npccombatactionevaluator.evaluator.combatactions.StateCombatAction
- All Implemented Interfaces:
JsonAsset<String>,JsonAssetWithMap<String,IndexedLookupTableAssetMap<String, CombatActionOption>>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.builtin.npccombatactionevaluator.evaluator.combatactions.CombatActionOption
CombatActionOption.Target -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<StateCombatAction> protected Stringprotected StringFields inherited from class com.hypixel.hytale.builtin.npccombatactionevaluator.evaluator.combatactions.CombatActionOption
actionTarget, BASE_CODEC, CHILD_ASSET_CODEC, CHILD_ASSET_CODEC_ARRAY, extraData, id, postExecuteDistanceRange, VALIDATOR_CACHEFields inherited from class com.hypixel.hytale.server.npc.decisionmaker.core.Option
ABSTRACT_CODEC, conditions, description, sortedConditions, weightCoefficient -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(int index, ArchetypeChunk<EntityStore> archetypeChunk, CommandBuffer<EntityStore> commandBuffer, Role role, CombatActionEvaluator evaluator, ValueStore valueStore) getState()booleanisBasicAttackAllowed(int selfIndex, ArchetypeChunk<EntityStore> archetypeChunk, CommandBuffer<EntityStore> commandBuffer, CombatActionEvaluator evaluator) toString()Methods inherited from class com.hypixel.hytale.builtin.npccombatactionevaluator.evaluator.combatactions.CombatActionOption
cancelBasicAttackOnSelect, getActionTarget, getAssetMap, getAssetStore, getId, getNothingFor, getPostExecuteDistanceRangeMethods inherited from class com.hypixel.hytale.server.npc.decisionmaker.core.Option
calculateUtility, getConditions, getWeightCoefficient, setupNPC, setupNPC, sortConditions
-
Field Details
-
CODEC
-
state
-
subState
-
-
Constructor Details
-
StateCombatAction
public StateCombatAction()
-
-
Method Details
-
getState
-
getSubState
-
execute
public void execute(int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, CommandBuffer<EntityStore> commandBuffer, @Nonnull Role role, @Nonnull CombatActionEvaluator evaluator, ValueStore valueStore) - Specified by:
executein classCombatActionOption
-
isBasicAttackAllowed
public boolean isBasicAttackAllowed(int selfIndex, ArchetypeChunk<EntityStore> archetypeChunk, CommandBuffer<EntityStore> commandBuffer, CombatActionEvaluator evaluator) - Specified by:
isBasicAttackAllowedin classCombatActionOption
-
toString
- Overrides:
toStringin classCombatActionOption
-