public interface Event
| Modifier and Type | Method and Description |
|---|---|
Object |
getData() |
<T> T |
getData(Class<T> type)
Convert the raw data in given type
|
<T> T |
getData(Class<T> type,
T defaultValue) |
String |
getName() |
String |
getSource() |
long |
getTimestamp() |
boolean |
isUserEvent() |
boolean isUserEvent()
String getSource()
EventBus where the event comes from. Same as EventSender.getId()String getName()
long getTimestamp()
Object getData()
<T> T getData(Class<T> type)
T - The type to cast the raw data intotype - The class of wanted type<T> T getData(Class<T> type, T defaultValue)
Copyright © 2020. All rights reserved.