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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classRepresents an "allowed/denied" result with a reason allowed for denial.static final classA generic "allowed/denied" result.static interfaceRepresents 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
-