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 Classes
    Modifier and Type
    Interface
    Description
    static 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

    Modifier and Type
    Method
    Description
    Returns the result associated with this event.
    void
    setResult(R result)
    Sets the result of this event.
  • Method Details

    • getResult

      R getResult()
      Returns the result associated with this event.
      Returns:
      the result of this event
    • setResult

      void setResult(R result)
      Sets the result of this event. The result must be non-null.
      Parameters:
      result - the new result