Contents
Class CombatTargetCollector
java.lang.Object
com.hypixel.hytale.builtin.npccombatactionevaluator.corecomponents.CombatTargetCollector
- All Implemented Interfaces:
ISensorEntityCollector, RoleStateChange
A collector designed to push matched targets to the
TargetMemory.-
Field Summary
Fields inherited from interface ISensorEntityCollector
DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()voidcollectMatching(Ref<EntityStore> ref, Ref<EntityStore> targetRef, ComponentAccessor<EntityStore> componentAccessor) voidcollectNonMatching(Ref<EntityStore> targetRef, ComponentAccessor<EntityStore> componentAccessor) voidinit(Ref<EntityStore> ref, ExecutionSupport executionSupport, ComponentAccessor<EntityStore> componentAccessor) voidregisterWithSupport(ExecutionSupport executionSupport) booleanMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RoleStateChange
loaded, motionControllerChanged, removed, spawned, teleported, unloaded
-
Constructor Details
-
CombatTargetCollector
public CombatTargetCollector()
-
-
Method Details
-
registerWithSupport
- Specified by:
registerWithSupportin interfaceRoleStateChange
-
init
public void init(@Nonnull Ref<EntityStore> ref, @Nonnull ExecutionSupport executionSupport, @Nonnull ComponentAccessor<EntityStore> componentAccessor) - Specified by:
initin interfaceISensorEntityCollector
-
collectMatching
public void collectMatching(@Nonnull Ref<EntityStore> ref, @Nonnull Ref<EntityStore> targetRef, @Nonnull ComponentAccessor<EntityStore> componentAccessor) - Specified by:
collectMatchingin interfaceISensorEntityCollector
-
collectNonMatching
public void collectNonMatching(@Nonnull Ref<EntityStore> targetRef, @Nonnull ComponentAccessor<EntityStore> componentAccessor) - Specified by:
collectNonMatchingin interfaceISensorEntityCollector
-
terminateOnFirstMatch
public boolean terminateOnFirstMatch()- Specified by:
terminateOnFirstMatchin interfaceISensorEntityCollector
-
cleanup
public void cleanup()- Specified by:
cleanupin interfaceISensorEntityCollector
-