Class CombatActionOption.Nothing
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.CombatActionOption.Nothing
- All Implemented Interfaces:
JsonAsset<String>,JsonAssetWithMap<String,IndexedLookupTableAssetMap<String, CombatActionOption>>
- Enclosing class:
CombatActionOption
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.builtin.npccombatactionevaluator.evaluator.combatactions.CombatActionOption
CombatActionOption.Target -
Field Summary
FieldsFields inherited from class com.hypixel.hytale.builtin.npccombatactionevaluator.evaluator.combatactions.CombatActionOption
actionTarget, BASE_CODEC, CHILD_ASSET_CODEC, CHILD_ASSET_CODEC_ARRAY, CODEC, extraData, 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) getId()booleanisBasicAttackAllowed(int selfIndex, ArchetypeChunk<EntityStore> archetypeChunk, CommandBuffer<EntityStore> commandBuffer, CombatActionEvaluator evaluator) Methods inherited from class com.hypixel.hytale.builtin.npccombatactionevaluator.evaluator.combatactions.CombatActionOption
cancelBasicAttackOnSelect, getActionTarget, getAssetMap, getAssetStore, getNothingFor, getPostExecuteDistanceRange, toStringMethods inherited from class com.hypixel.hytale.server.npc.decisionmaker.core.Option
calculateUtility, getConditions, getWeightCoefficient, setupNPC, setupNPC, sortConditions
-
Field Details
-
id
-
-
Constructor Details
-
Nothing
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceJsonAsset<String>- Overrides:
getIdin classCombatActionOption
-
execute
public void execute(int index, ArchetypeChunk<EntityStore> archetypeChunk, CommandBuffer<EntityStore> commandBuffer, Role role, 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
-