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.

@FunctionalInterface public interface CloseHandler
Callback invoked when a view closes; see ViewBuilder.onClose(CloseHandler).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onClose(com.velocitypowered.api.proxy.Player player, CloseReason reason, ViewContext context)
    Handles the close.
  • Method Details

    • onClose

      void onClose(com.velocitypowered.api.proxy.Player player, CloseReason reason, ViewContext context)
      Handles the close.
      Parameters:
      player - the player the view was open for
      reason - why it closed
      context - the per-open context