Class PlayerStatisticScreenOpenEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
moe.caramel.daydream.event.player.PlayerStatisticScreenOpenEvent
All Implemented Interfaces:
Cancellable

@NullMarked public final class PlayerStatisticScreenOpenEvent extends PlayerEvent implements Cancellable
플레이어가 통계 화면을 열기 위해 서버에게 통계 데이터를 요청한 경우 호출됩니다.
  • Constructor Details

    • PlayerStatisticScreenOpenEvent

      @Internal public PlayerStatisticScreenOpenEvent(Player player)
  • Method Details

    • isCancelled

      public boolean isCancelled()
      통계 데이터를 클라이언트에게 전송할지의 여부를 가져옵니다.
      Specified by:
      isCancelled in interface Cancellable
      Returns:
      통계 데이터를 전송할지의 여부
    • setCancelled

      public void setCancelled(boolean cancel)
      통계 데이터를 클라이언트에게 전송할지 여부를 설정합니다.

      주의: 이벤트를 취소해도 클라이언트에는 "통계 로드 중..." 화면이 계속 출력됩니다. 인벤토리를 열고 닫는 방법을 사용하여 로드 화면을 제거할 수 있습니다.

      Specified by:
      setCancelled in interface Cancellable
      Parameters:
      cancel - true인 경우 통계 데이터를 클라이언트에게 전송하지 않습니다.
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()