Package net.lenni0451.imnbt.ui.types
Interface Popup.PopupCallback<P>
- Type Parameters:
P- The type of the popup
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Listener for when a popup is closed.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Popup.PopupCallback<T>close(ImNbtDrawer drawer) Get a callback that closes the popup ignoring the result.voidHandle the popup being closed.
-
Method Details
-
close
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
Handle the popup being closed.- Parameters:
popup- The popup that was closedsuccess- If the popup was closed with a success
-