Package com.velocitypowered.api.event
Interface ResultedEvent<R extends ResultedEvent.Result>
- All Known Implementing Classes:
CommandExecuteEvent
,CookieReceiveEvent
,CookieRequestEvent
,CookieStoreEvent
,KickedFromServerEvent
,LoginEvent
,PlayerChatEvent
,PluginMessageEvent
,PreLoginEvent
,PreTransferEvent
,ProxyPingEvent
,ServerLoginPluginMessageEvent
,ServerPreConnectEvent
,ServerResourcePackRemoveEvent
,ServerResourcePackSendEvent
public interface ResultedEvent<R extends ResultedEvent.Result>
Indicates an event that has a result attached to it.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
Represents an "allowed/denied" result with a reason allowed for denial.static final class
A generic "allowed/denied" result.static interface
Represents a result for an event. -
Method Summary
-
Method Details
-
getResult
R getResult()Returns the result associated with this event.- Returns:
- the result of this event
-
setResult
Sets the result of this event. The result must be non-null.- Parameters:
result
- the new result
-