Class SensorCount
java.lang.Object
com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
com.hypixel.hytale.server.npc.corecomponents.SensorBase
com.hypixel.hytale.server.npc.corecomponents.entity.SensorCount
- All Implemented Interfaces:
RoleStateChange,Sensor,IAnnotatedComponent,IComponentExecutionControl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final int[]protected booleanprotected final booleanprotected final booleanprotected final int[]protected final intprotected final doubleprotected final intprotected final doubleFields inherited from class com.hypixel.hytale.server.npc.corecomponents.SensorBase
once, triggeredFields inherited from class com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
index, parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanfilterNPC(Ref<EntityStore> ref, Role role, ComponentAccessor<EntityStore> componentAccessor) protected static booleangroupListHasPlayer(int[] groups) booleanmatches(Ref<EntityStore> ref, Role role, double dt, Store<EntityStore> store) voidregisterWithSupport(Role role) Methods inherited from class com.hypixel.hytale.server.npc.corecomponents.SensorBase
clearOnce, isTriggered, processDelay, setOnceMethods inherited from class com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
getIndex, getInfo, getParent, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.server.npc.util.IAnnotatedComponent
getBreadCrumbs, getBreadCrumbs, getIndex, getInfo, getLabel, getParent, setContextMethods inherited from interface com.hypixel.hytale.server.npc.instructions.RoleStateChange
loaded, motionControllerChanged, removed, spawned, teleported, unloaded
-
Field Details
-
minCount
protected final int minCount -
maxCount
protected final int maxCount -
minRange
protected final double minRange -
maxRange
protected final double maxRange -
includeGroups
protected final int[] includeGroups -
excludeGroups
protected final int[] excludeGroups -
findPlayers
protected boolean findPlayers -
haveIncludeGroups
protected final boolean haveIncludeGroups -
haveExcludeGroups
protected final boolean haveExcludeGroups
-
-
Constructor Details
-
SensorCount
-
-
Method Details
-
registerWithSupport
-
matches
public boolean matches(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, double dt, @Nonnull Store<EntityStore> store) - Specified by:
matchesin interfaceSensor- Overrides:
matchesin classSensorBase
-
getSensorInfo
-
groupListHasPlayer
protected static boolean groupListHasPlayer(@Nonnull int[] groups) -
filterNPC
protected boolean filterNPC(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
-