Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ENTER |
private PlaceEntity |
entity_
An optional
PlaceEntity to be attached with this event. |
private java.lang.String |
event_type_
The type of event being fired.
|
static java.lang.String |
EXIT |
Constructor and Description |
---|
PlaceEvent(java.lang.String event_type,
PlaceEntity entity)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
PlaceEntity |
entity() |
java.lang.String |
event_type() |
public static final java.lang.String ENTER
public static final java.lang.String EXIT
@NonNull private final java.lang.String event_type_
@Nullable private final PlaceEntity entity_
PlaceEntity
to be attached with this event.public PlaceEvent(@NonNull java.lang.String event_type, @Nullable PlaceEntity entity)
event_type
- The event typeentity
- A (possibly null
) PlaceEntity
firing the event@NonNull public java.lang.String event_type()
event_type
in interface IEvent
@Nullable public PlaceEntity entity()