Interface ResultedEvent<R extends ResultedEvent.Result>

Type Parameters:
R - the result type
All Known Implementing Classes:
AsyncLoginEvent, LoginEvent, PreLoginEvent, ServerPreConnectEvent

public interface ResultedEvent<R extends ResultedEvent.Result>
An event that allows the result to be modified.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    A simple allowed/denied result.
    static interface 
    Base interface for event results.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the current result.
    void
    setResult(R result)
    Set the result.
  • Method Details

    • getResult

      R getResult()
      Get the current result.
      Returns:
      the result
    • setResult

      void setResult(R result)
      Set the result.
      Parameters:
      result - the new result