Contents
Class SensorOr
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.SensorOr
- All Implemented Interfaces:
RoleStateChange, Sensor, IAnnotatedComponent, IAnnotatedComponentCollection, IComponentExecutionControl
SensorOr matches when any of the children matches.
The sensor used for positions etc. is the first one matching.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSensorOr(BuilderSensorOr 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
-
SensorOr
public SensorOr(@Nonnull BuilderSensorOr 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
-