Contents
Class TargetMemory
java.lang.Object
com.hypixel.hytale.builtin.npccombatactionevaluator.memory.TargetMemory
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
A short term memory used by NPCs in combat to keep track of known targets to act upon.
-
Field Summary
Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()static ComponentType<EntityStore, TargetMemory> it.unimi.dsi.fastutil.ints.Int2FloatOpenHashMapit.unimi.dsi.fastutil.ints.Int2FloatOpenHashMapfloatvoidsetClosestHostile(Ref<EntityStore> ref) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Constructor Details
-
TargetMemory
public TargetMemory(float rememberFor)
-
-
Method Details
-
getComponentType
-
getKnownFriendlies
@Nonnull public it.unimi.dsi.fastutil.ints.Int2FloatOpenHashMap getKnownFriendlies() -
getKnownFriendliesList
-
getKnownHostiles
@Nonnull public it.unimi.dsi.fastutil.ints.Int2FloatOpenHashMap getKnownHostiles() -
getKnownHostilesList
-
getRememberFor
public float getRememberFor() -
getClosestHostile
-
setClosestHostile
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-