Contents
Class StateEvaluator
java.lang.Object
com.hypixel.hytale.server.npc.decisionmaker.core.Evaluator<StateOption>
com.hypixel.hytale.server.npc.decisionmaker.stateevaluator.StateEvaluator
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
An implementation of the
Evaluator designed to dynamically switch NPC states.- Since:
- 2019/12/11
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Evaluator
Evaluator.OptionHolder -
Field Summary
FieldsFields inherited from interface Component
EMPTY_ARRAY -
Method Summary
Modifier and TypeMethodDescriptionclone()static ComponentType<EntityStore, StateEvaluator> booleanisActive()voidvoidvoidprepareOptions(StateMappingHelper stateHelper) voidsetActive(boolean active) booleanshouldExecute(double interval) toString()Methods inherited from class Evaluator
evaluate, initialise, setupNPC, setupNPCMethods inherited from interface Component
cloneSerializable
-
Field Details
-
CODEC
-
-
Method Details
-
getComponentType
-
isActive
public boolean isActive() -
setActive
public void setActive(boolean active) -
getEvaluationContext
-
prepareOptions
-
shouldExecute
public boolean shouldExecute(double interval) -
prepareEvaluationContext
-
onStateSwitched
public void onStateSwitched() -
toString
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-