SensorEvent

abstract class SensorEvent extends SensorBase

Event fired when sensor occurs. Listen for this event using EventBus.register.

java.lang.Object > SensorBase > SensorEvent

Field Summary

playerEventMessageSlot

protected int playerEventMessageSlot

Field playerEventMessageSlot.

npcEventMessageSlot

protected int npcEventMessageSlot

Field npcEventMessageSlot.

set

final Ref set

Field set.

Method Detail

SensorEvent

public public SensorEvent (@Nonnull final BuilderSensorEvent builder, @Nonnull final BuilderSupport support)

Method SensorEvent.

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

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.

setTarget

protected boolean setTarget (@Nonnull final MarkedEntitySupport support, @Nullable final Ref target, @Nonnull final ComponentAccessor componentAccessor)

Method setTarget.

Parameters:
@Nonnull final MarkedEntitySupport support
@Nullable final Ref target
@Nonnull final ComponentAccessor componentAccessor

EventSearchType

public private EventSearchType (final String description)

Method EventSearchType.

Parameters:
final String description

get

public String get ()

Method get.