T - the type data in the event.@Immutable public interface CastEvent<T>
| Modifier and Type | Method and Description |
|---|---|
T |
getData() |
<U> U |
getData(Class<U> cls)
Tries to cast the event data to the specified type and return it.
|
CastEvent.CastEventType |
getEventType() |
@Nonnull CastEvent.CastEventType getEventType()
CastEvent.CastEventType of this event.Copyright © 2022. All rights reserved.