Class SensorDroppedItem
java.lang.Object
com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
com.hypixel.hytale.server.npc.corecomponents.SensorBase
com.hypixel.hytale.server.npc.corecomponents.items.SensorDroppedItem
- All Implemented Interfaces:
RoleStateChange,Sensor,IAnnotatedComponent,IComponentExecutionControl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected floatprotected final EntityPositionProviderprotected final doubleprotected static final ComponentType<EntityStore, TransformComponent> protected final floatFields 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 TypeMethodDescriptionprotected booleanfilterItem(Ref<EntityStore> ref, Ref<EntityStore> itemRef, Role role, ComponentAccessor<EntityStore> componentAccessor) booleanmatches(Ref<EntityStore> ref, Role role, double dt, Store<EntityStore> store) voidregisterWithSupport(Role role) Methods inherited from class com.hypixel.hytale.server.npc.corecomponents.SensorBase
clearOnce, 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, removed, spawned, teleported, unloaded
-
Field Details
-
TRANSFORM_COMPONENT_TYPE
-
items
-
attitudes
-
range
protected final double range -
viewCone
protected final float viewCone -
hasLineOfSight
protected final boolean hasLineOfSight -
heading
protected float heading -
positionProvider
-
-
Constructor Details
-
SensorDroppedItem
public SensorDroppedItem(@Nonnull BuilderSensorDroppedItem builder, @Nonnull BuilderSupport support)
-
-
Method Details
-
registerWithSupport
-
matches
public boolean matches(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, double dt, @Nonnull Store<EntityStore> store) - Specified by:
matchesin interfaceSensor- Overrides:
matchesin classSensorBase
-
getSensorInfo
-
filterItem
protected boolean filterItem(@Nonnull Ref<EntityStore> ref, @Nonnull Ref<EntityStore> itemRef, @Nonnull Role role, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
-