Contents
Class EncounterMemberCollector
java.lang.Object
com.hypixel.hytale.builtin.encountermanager.npc.EncounterMemberCollector
- All Implemented Interfaces:
ISensorEntityCollector, RoleStateChange
Collector that records matched players as members of the encounter, driving every per-player effect it runs.
-
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) booleanMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RoleStateChange
loaded, motionControllerChanged, registerWithSupport, removed, spawned, teleported, unloaded
-
Constructor Details
-
EncounterMemberCollector
public EncounterMemberCollector(float rememberFor)
-
-
Method Details
-
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
-