Class NullSensor
java.lang.Object
com.hypixel.hytale.server.npc.instructions.NullSensor
- All Implemented Interfaces:
RoleStateChange,Sensor,IAnnotatedComponent,IComponentExecutionControl
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintgetIndex()voidgetInfo(Role role, ComponentInfo holder) booleanbooleanmatches(Ref<EntityStore> ref, Role role, double dt, Store<EntityStore> store) booleanprocessDelay(float dt) voidsetContext(IAnnotatedComponent parent, int index) voidsetOnce()Methods 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, getLabelMethods inherited from interface com.hypixel.hytale.server.npc.instructions.RoleStateChange
loaded, motionControllerChanged, registerWithSupport, removed, spawned, teleported, unloaded
-
Constructor Details
-
NullSensor
public NullSensor()
-
-
Method Details
-
matches
public boolean matches(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, double dt, @Nonnull Store<EntityStore> store) -
getSensorInfo
- Specified by:
getSensorInfoin interfaceSensor
-
processDelay
public boolean processDelay(float dt) - Specified by:
processDelayin interfaceIComponentExecutionControl
-
clearOnce
public void clearOnce()- Specified by:
clearOncein interfaceIComponentExecutionControl
-
setOnce
public void setOnce()- Specified by:
setOncein interfaceIComponentExecutionControl
-
isTriggered
public boolean isTriggered()- Specified by:
isTriggeredin interfaceIComponentExecutionControl
-
getInfo
- Specified by:
getInfoin interfaceIAnnotatedComponent
-
setContext
- Specified by:
setContextin interfaceIAnnotatedComponent
-
getParent
- Specified by:
getParentin interfaceIAnnotatedComponent
-
getIndex
public int getIndex()- Specified by:
getIndexin interfaceIAnnotatedComponent
-