Class NearbyCountCondition
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.server.npc.decisionmaker.core.conditions.NearbyCountCondition
- All Implemented Interfaces:
JsonAsset<String>,JsonAssetWithMap<String,IndexedLookupTableAssetMap<String, Condition>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<NearbyCountCondition> protected booleanprotected Stringprotected intprotected doubleFields 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 static booleanfilterNPC(Role role, Ref<EntityStore> ref, NearbyCountCondition _this, ComponentAccessor<EntityStore> componentAccessor) protected doublegetInput(int selfIndex, ArchetypeChunk<EntityStore> archetypeChunk, Ref<EntityStore> target, CommandBuffer<EntityStore> commandBuffer, EvaluationContext context) intdoublegetRange()voidtoString()Methods inherited from class com.hypixel.hytale.server.npc.decisionmaker.core.conditions.base.ScaledCurveCondition
calculateUtility, getResponseCurve, getSimplicityMethods inherited from class com.hypixel.hytale.server.npc.decisionmaker.core.conditions.base.Condition
getAlwaysTrueFor, getAssetMap, getAssetStore, getId, getReference, setupNPC
-
Field Details
-
CODEC
-
range
protected double range -
npcGroup
-
npcGroupIndex
protected int npcGroupIndex -
includePlayers
protected boolean includePlayers
-
-
Constructor Details
-
NearbyCountCondition
protected NearbyCountCondition()
-
-
Method Details
-
getRange
public double getRange() -
getNpcGroup
-
getNpcGroupIndex
public int getNpcGroupIndex() -
setupNPC
-
getInput
protected double getInput(int selfIndex, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, Ref<EntityStore> target, CommandBuffer<EntityStore> commandBuffer, EvaluationContext context) - Specified by:
getInputin classScaledCurveCondition
-
filterNPC
protected static boolean filterNPC(@Nonnull Role role, Ref<EntityStore> ref, @Nonnull NearbyCountCondition _this, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
toString
- Overrides:
toStringin classScaledCurveCondition
-