Class SensorCanPlace
java.lang.Object
com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
com.hypixel.hytale.server.npc.corecomponents.SensorBase
com.hypixel.hytale.server.npc.corecomponents.world.SensorCanPlace
- All Implemented Interfaces:
RoleStateChange,Sensor,IAnnotatedComponent,IComponentExecutionControl
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected static final ComponentType<EntityStore, BoundingBox> protected final Vector3dprotected booleanprotected doubleprotected final SensorCanPlace.Directionprotected final SensorCanPlace.Offsetprotected final CachedPositionProviderprotected final doubleprotected final Vector3dFields 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 TypeMethodDescriptionvoidbooleanmatches(Ref<EntityStore> ref, Role role, double dt, Store<EntityStore> store) Methods inherited from class com.hypixel.hytale.server.npc.corecomponents.SensorBase
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, registerWithSupport, removed, spawned, teleported, unloaded
-
Field Details
-
BOUNDING_BOX_COMPONENT_TYPE
-
direction
-
offset
-
retryDelay
protected final double retryDelay -
allowEmptyMaterials
protected final boolean allowEmptyMaterials -
transform
-
positionProvider
-
cachedPosition
-
cachedResult
protected boolean cachedResult -
delay
protected double delay
-
-
Constructor Details
-
SensorCanPlace
-
-
Method Details
-
matches
public boolean matches(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, double dt, @Nonnull Store<EntityStore> store) - Specified by:
matchesin interfaceSensor- Overrides:
matchesin classSensorBase
-
clearOnce
public void clearOnce()- Specified by:
clearOncein interfaceIComponentExecutionControl- Overrides:
clearOncein classSensorBase
-
getSensorInfo
-