SensorDroppedItem

public class SensorDroppedItem extends SensorBase

Class SensorDroppedItem. Provides sensordroppeditem functionality for the Hytale server.

java.lang.Object > SensorBase > SensorDroppedItem

Field Summary

heading

protected float heading

Field heading.

itemArray

final String[] itemArray

Field itemArray.

headRotationComponent

final HeadRotation headRotationComponent

Field headRotationComponent.

droppedItem

final Ref droppedItem

Field droppedItem.

selfTransformComponent

final TransformComponent selfTransformComponent

Field selfTransformComponent.

selfPosition

final Vector3d selfPosition

Field selfPosition.

itemTransformComponent

final TransformComponent itemTransformComponent

Field itemTransformComponent.

itemPosition

final Vector3d itemPosition

Field itemPosition.

itemComponent

final ItemComponent itemComponent

Field itemComponent.

itemStack

final ItemStack itemStack

Field itemStack.

attitude

final Attitude attitude

Field attitude.

Method Detail

SensorDroppedItem

public public SensorDroppedItem (@Nonnull final BuilderSensorDroppedItem builder, @Nonnull final BuilderSupport support)

Method SensorDroppedItem.

Parameters:
@Nonnull final BuilderSensorDroppedItem builder
@Nonnull final BuilderSupport support

registerWithSupport

public void registerWithSupport (@Nonnull final Role role)

Method registerWithSupport.

Parameters:
@Nonnull final Role role

matches

public boolean matches (@Nonnull final Ref ref, @Nonnull final Role role, final double dt, @Nonnull final Store store)

Method matches.

Parameters:
@Nonnull final Ref ref
@Nonnull final Role role
final double dt
@Nonnull final Store store

getSensorInfo

public InfoProvider getSensorInfo ()

Method getSensorInfo.

filterItem

protected boolean filterItem (@Nonnull final Ref ref, @Nonnull final Ref itemRef, @Nonnull final Role role, @Nonnull final ComponentAccessor componentAccessor)

Method filterItem.

Parameters:
@Nonnull final Ref ref
@Nonnull final Ref itemRef
@Nonnull final Role role
@Nonnull final ComponentAccessor componentAccessor