Contents
Class SensorAnd
java.lang.Object
com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
com.hypixel.hytale.server.npc.corecomponents.SensorBase
com.hypixel.hytale.server.npc.corecomponents.utility.SensorMany
com.hypixel.hytale.server.npc.corecomponents.utility.SensorAnd
- All Implemented Interfaces:
RoleStateChange, Sensor, IAnnotatedComponent, IAnnotatedComponentCollection, IComponentExecutionControl
SensorAnd matches when all of the children matches.
The sensor used for getting positions etc. is the first one added.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSensorAnd(BuilderSensorAnd builder, BuilderSupport support, List<Sensor> sensors) -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(Ref<EntityStore> ref, ExecutionSupport executionSupport, double dt, Store<EntityStore> store) Methods inherited from class SensorMany
componentCount, done, getComponent, getSensorInfo, loaded, motionControllerChanged, registerWithSupport, removed, setContext, spawned, teleported, unloadedMethods inherited from class SensorBase
clearOnce, isTriggered, processDelay, setOnceMethods inherited from class AnnotatedComponentBase
getIndex, getInfo, getParentMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IAnnotatedComponent
getBreadCrumbs, getBreadCrumbs, getIndex, getInfo, getLabel, getParent
-
Constructor Details
-
SensorAnd
public SensorAnd(@Nonnull BuilderSensorAnd builder, @Nonnull BuilderSupport support, @Nonnull List<Sensor> sensors)
-
-
Method Details
-
matches
public boolean matches(@Nonnull Ref<EntityStore> ref, @Nonnull ExecutionSupport executionSupport, double dt, @Nonnull Store<EntityStore> store) - Specified by:
matchesin interfaceSensor- Overrides:
matchesin classSensorBase
-