Class SensorBase
java.lang.Object
com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
com.hypixel.hytale.server.npc.corecomponents.SensorBase
- All Implemented Interfaces:
RoleStateChange,Sensor,IAnnotatedComponent,IComponentExecutionControl
- Direct Known Subclasses:
SensorAdjustPosition,SensorAge,SensorAlarm,SensorAnimation,SensorAny,SensorBeacon,SensorBlock,SensorBlockType,SensorCanInteract,SensorCanPlace,SensorCombatActionEvaluator,SensorCount,SensorDamage,SensorDroppedItem,SensorEval,SensorEvent,SensorFlag,SensorFlockCombatDamage,SensorFlockLeader,SensorHasHostileTargetMemory,SensorHasInteracted,SensorHasTask,SensorInAir,SensorInflictedDamage,SensorInteractionContext,SensorInWater,SensorIsBackingAway,SensorIsBusy,SensorKill,SensorLeash,SensorLight,SensorMany,SensorMotionController,SensorNav,SensorNot,SensorOnGround,SensorPath,SensorRandom,SensorReadPosition,SensorSearchRay,SensorState,SensorSwitch,SensorTime,SensorTimer,SensorValueProviderWrapper,SensorWeather,SensorWithEntityFilters
-
Field Summary
FieldsFields inherited from class com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
index, parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanmatches(Ref<EntityStore> ref, Role role, double dt, Store<EntityStore> store) booleanprocessDelay(float dt) voidsetOnce()Methods 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, registerWithSupport, removed, spawned, teleported, unloadedMethods inherited from interface com.hypixel.hytale.server.npc.instructions.Sensor
done, getSensorInfo
-
Field Details
-
once
protected final boolean once -
triggered
protected boolean triggered
-
-
Constructor Details
-
SensorBase
-
-
Method Details
-
matches
public boolean matches(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, double dt, @Nonnull Store<EntityStore> store) -
clearOnce
public void clearOnce()- Specified by:
clearOncein interfaceIComponentExecutionControl
-
setOnce
public void setOnce()- Specified by:
setOncein interfaceIComponentExecutionControl
-
isTriggered
public boolean isTriggered()- Specified by:
isTriggeredin interfaceIComponentExecutionControl
-
processDelay
public boolean processDelay(float dt) - Specified by:
processDelayin interfaceIComponentExecutionControl
-