Interface Popup.PopupCallback<P>

Type Parameters:
P - The type of the popup
Enclosing class:
Popup<P extends Popup<P>>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Popup.PopupCallback<P>
Listener for when a popup is closed.
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> Popup.PopupCallback<T>
    Get a callback that closes the popup ignoring the result.
    void
    onClose(P popup, boolean success)
    Handle the popup being closed.
  • Method Details

    • close

      static <T> Popup.PopupCallback<T> close(ImNbtDrawer drawer)
      Get a callback that closes the popup ignoring the result.
      Type Parameters:
      T - The type of the popup
      Parameters:
      drawer - The drawer instance
      Returns:
      The callback
    • onClose

      void onClose(P popup, boolean success)
      Handle the popup being closed.
      Parameters:
      popup - The popup that was closed
      success - If the popup was closed with a success