Class Condition
java.lang.Object
com.hypixel.hytale.server.npc.decisionmaker.core.conditions.base.Condition
- All Implemented Interfaces:
JsonAsset<String>,JsonAssetWithMap<String,IndexedLookupTableAssetMap<String, Condition>>
- Direct Known Subclasses:
Condition.AlwaysTrueCondition,CurveCondition,RandomiserCondition,ScaledCurveCondition,SimpleCondition
public abstract class Condition
extends Object
implements JsonAssetWithMap<String,IndexedLookupTableAssetMap<String,Condition>>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate static AssetStore<String, Condition, IndexedLookupTableAssetMap<String, Condition>> static final BuilderCodec<Condition> static final intstatic final AssetCodecMapCodec<String, Condition> protected AssetExtraInfo.Datastatic final intprotected Stringstatic final doublestatic final intprotected WeakReference<Condition> static final intstatic final ValidatorCache<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract doublecalculateUtility(int var1, ArchetypeChunk<EntityStore> var2, Ref<EntityStore> var3, CommandBuffer<EntityStore> var4, EvaluationContext var5) static ConditiongetId()abstract intvoidsetupNPC(Holder<EntityStore> holder) voidtoString()
-
Field Details
-
NO_TARGET
public static final double NO_TARGET- See Also:
-
ALWAYS_TRUE_SIMPLICITY
public static final int ALWAYS_TRUE_SIMPLICITY- See Also:
-
BOOLEAN_CHECK_SIMPLICITY
public static final int BOOLEAN_CHECK_SIMPLICITY- See Also:
-
NORMALISED_CURVE_SIMPLICITY
public static final int NORMALISED_CURVE_SIMPLICITY- See Also:
-
SCALED_CURVE_SIMPLICITY
public static final int SCALED_CURVE_SIMPLICITY- See Also:
-
HIGH_COST_SIMPLICITY
public static final int HIGH_COST_SIMPLICITY- See Also:
-
CODEC
-
BASE_CODEC
-
CHILD_ASSET_CODEC
-
CHILD_ASSET_CODEC_ARRAY
-
VALIDATOR_CACHE
-
ASSET_STORE
private static AssetStore<String,Condition, ASSET_STOREIndexedLookupTableAssetMap<String, Condition>> -
data
-
id
-
reference
-
-
Constructor Details
-
Condition
-
Condition
protected Condition()
-
-
Method Details
-
getAssetStore
public static AssetStore<String,Condition, getAssetStore()IndexedLookupTableAssetMap<String, Condition>> -
getAssetMap
-
getId
-
setupNPC
-
setupNPC
-
getReference
-
calculateUtility
public abstract double calculateUtility(int var1, ArchetypeChunk<EntityStore> var2, Ref<EntityStore> var3, CommandBuffer<EntityStore> var4, EvaluationContext var5) -
getSimplicity
public abstract int getSimplicity() -
toString
-
getAlwaysTrueFor
-