Contents
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>>
A
CombatActionOption that switches the NPC into a different state or substate.-
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 TypeMethodDescriptionvoidexecute(int index, ArchetypeChunk<EntityStore> archetypeChunk, CommandBuffer<EntityStore> commandBuffer, ExecutionSupport executionSupport, CombatActionEvaluator evaluator, ValueStore valueStore) getState()booleanisBasicAttackAllowed(int selfIndex, ArchetypeChunk<EntityStore> archetypeChunk, CommandBuffer<EntityStore> commandBuffer, CombatActionEvaluator evaluator) toString()Methods inherited from class CombatActionOption
cancelBasicAttackOnSelect, getActionTarget, getAssetMap, getAssetStore, getId, getNothingFor, getPostExecuteDistanceRangeMethods inherited from class Option
calculateUtility, getConditions, getWeightCoefficient, setupNPC, setupNPC, sortConditions
-
Field Details
-
CODEC
-
-
Constructor Details
-
StateCombatAction
public StateCombatAction()
-
-
Method Details
-
getState
-
getSubState
-
execute
public void execute(int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, @Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull ExecutionSupport executionSupport, @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
-