Interface CloseHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback invoked when a view closes; see
ViewBuilder.onClose(CloseHandler).-
Method Summary
Modifier and TypeMethodDescriptionvoidonClose(com.velocitypowered.api.proxy.Player player, CloseReason reason, ViewContext context) Handles the close.
-
Method Details
-
onClose
Handles the close.- Parameters:
player- the player the view was open forreason- why it closedcontext- the per-open context
-