Class TargetMemoryCountCondition
java.lang.Object
com.hypixel.hytale.server.npc.decisionmaker.core.conditions.base.Condition
com.hypixel.hytale.server.npc.decisionmaker.core.conditions.base.ScaledCurveCondition
com.hypixel.hytale.builtin.npccombatactionevaluator.conditions.TargetMemoryCountCondition
- All Implemented Interfaces:
JsonAsset<String>,JsonAssetWithMap<String,IndexedLookupTableAssetMap<String, Condition>>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<TargetMemoryCountCondition> protected static final ComponentType<EntityStore, TargetMemory> static final EnumCodec<TargetMemoryCountCondition.TargetType> protected TargetMemoryCountCondition.TargetTypeFields inherited from class com.hypixel.hytale.server.npc.decisionmaker.core.conditions.base.ScaledCurveCondition
ABSTRACT_CODEC, responseCurveFields inherited from class com.hypixel.hytale.server.npc.decisionmaker.core.conditions.base.Condition
ALWAYS_TRUE_SIMPLICITY, BASE_CODEC, BOOLEAN_CHECK_SIMPLICITY, CHILD_ASSET_CODEC, CHILD_ASSET_CODEC_ARRAY, data, HIGH_COST_SIMPLICITY, id, NO_TARGET, NORMALISED_CURVE_SIMPLICITY, reference, SCALED_CURVE_SIMPLICITY, VALIDATOR_CACHE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected doublegetInput(int selfIndex, ArchetypeChunk<EntityStore> archetypeChunk, Ref<EntityStore> target, CommandBuffer<EntityStore> commandBuffer, EvaluationContext context) Methods inherited from class com.hypixel.hytale.server.npc.decisionmaker.core.conditions.base.ScaledCurveCondition
calculateUtility, getResponseCurve, getSimplicity, toStringMethods inherited from class com.hypixel.hytale.server.npc.decisionmaker.core.conditions.base.Condition
getAlwaysTrueFor, getAssetMap, getAssetStore, getId, getReference, setupNPC, setupNPC
-
Field Details
-
TARGET_TYPE_CODEC
-
CODEC
-
TARGET_MEMORY_COMPONENT_TYPE
-
targetType
-
-
Constructor Details
-
TargetMemoryCountCondition
public TargetMemoryCountCondition()
-
-
Method Details
-
getInput
protected double getInput(int selfIndex, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, Ref<EntityStore> target, CommandBuffer<EntityStore> commandBuffer, EvaluationContext context) - Specified by:
getInputin classScaledCurveCondition
-