Class Option
java.lang.Object
com.hypixel.hytale.server.npc.decisionmaker.core.Option
- Direct Known Subclasses:
CombatActionEvaluator.RunOption,CombatActionOption,StateOption
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<Option> protected String[]protected Stringprotected Option.ConditionReference[]protected double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecalculateUtility(int selfIndex, ArchetypeChunk<EntityStore> archetypeChunk, Ref<EntityStore> target, CommandBuffer<EntityStore> commandBuffer, EvaluationContext context) String[]doublevoidsetupNPC(Holder<EntityStore> holder) voidvoidtoString()
-
Field Details
-
ABSTRACT_CODEC
-
description
-
conditions
-
weightCoefficient
protected double weightCoefficient -
sortedConditions
-
-
Constructor Details
-
Option
protected Option()
-
-
Method Details
-
getConditions
-
getWeightCoefficient
public double getWeightCoefficient() -
sortConditions
public void sortConditions() -
setupNPC
-
setupNPC
-
calculateUtility
public double calculateUtility(int selfIndex, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, Ref<EntityStore> target, CommandBuffer<EntityStore> commandBuffer, @Nonnull EvaluationContext context) -
toString
-