Contents
Class BasicAttackTargetCombatAction
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.BasicAttackTargetCombatAction
- All Implemented Interfaces:
JsonAsset<String>, JsonAssetWithMap<String, IndexedLookupTableAssetMap<String, CombatActionOption>>
A combat action that simply selects a target for use with substates that only contain basic attacks.
-
Nested Class Summary
Nested classes/interfaces inherited from class CombatActionOption
CombatActionOption.Target -
Field Summary
FieldsFields inherited from class CombatActionOption
BASE_CODEC, CHILD_ASSET_CODEC, CHILD_ASSET_CODEC_ARRAY, VALIDATOR_CACHEFields inherited from class Option
ABSTRACT_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidexecute(int index, ArchetypeChunk<EntityStore> archetypeChunk, CommandBuffer<EntityStore> commandBuffer, ExecutionSupport executionSupport, CombatActionEvaluator evaluator, ValueStore valueStore) booleanisBasicAttackAllowed(int selfIndex, ArchetypeChunk<EntityStore> archetypeChunk, CommandBuffer<EntityStore> commandBuffer, CombatActionEvaluator evaluator) Methods inherited from class CombatActionOption
getActionTarget, getAssetMap, getAssetStore, getId, getNothingFor, getPostExecuteDistanceRange, toStringMethods inherited from class Option
calculateUtility, getConditions, getWeightCoefficient, setupNPC, setupNPC, sortConditions
-
Field Details
-
CODEC
-
-
Constructor Details
-
BasicAttackTargetCombatAction
public BasicAttackTargetCombatAction()
-
-
Method Details
-
execute
public void execute(int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, CommandBuffer<EntityStore> commandBuffer, ExecutionSupport executionSupport, @Nonnull CombatActionEvaluator evaluator, @Nonnull ValueStore valueStore) - Specified by:
executein classCombatActionOption
-
isBasicAttackAllowed
public boolean isBasicAttackAllowed(int selfIndex, ArchetypeChunk<EntityStore> archetypeChunk, CommandBuffer<EntityStore> commandBuffer, CombatActionEvaluator evaluator) - Specified by:
isBasicAttackAllowedin classCombatActionOption
-
cancelBasicAttackOnSelect
public boolean cancelBasicAttackOnSelect()- Overrides:
cancelBasicAttackOnSelectin classCombatActionOption
-