Class AsyncPlayerDataPreLoadEvent

java.lang.Object
org.bukkit.event.Event
moe.caramel.daydream.event.player.AsyncPlayerDataPreLoadEvent

@NullMarked public abstract class AsyncPlayerDataPreLoadEvent extends Event
비동기 플레이어 데이터 사전 로드 이벤트

AsyncPlayerPreLoginEvent 호출 이후에 플레이어의 GameProfile이 완성되면 호출됩니다.

  • Constructor Details

    • AsyncPlayerDataPreLoadEvent

      @Internal public AsyncPlayerDataPreLoadEvent()
  • Method Details

    • isSupportInterrupt

      public final boolean isSupportInterrupt()
      Description copied from class: Event
      이 이벤트가 인터럽트를 지원하는지 여부를 가져옵니다.
      Overrides:
      isSupportInterrupt in class Event
      Returns:
      인터럽트 지원 여부
    • getGameProfile

      public abstract com.mojang.authlib.GameProfile getGameProfile()
      플레이어의 프로필을 가져옵니다.
      Returns:
      플레이어의 프로필
    • getProfile

      @Deprecated public abstract PlayerProfile getProfile()
      Deprecated.
      메서드를 호출할 때마다 새로운 프로필 미러가 생성됩니다. getGameProfile()를 사용하세요.
      플레이어의 프로필을 가져옵니다.
      Returns:
      플레이어의 프로필
    • getName

      public final String getName()
      플레이어의 이름을 가져옵니다.
      Returns:
      플레이어의 이름
    • getUniqueId

      public final UUID getUniqueId()
      플레이어의 UUID를 가져옵니다.
      Returns:
      플레이어의 UUID
    • getAddress

      public abstract InetAddress getAddress()
      플레이어의 IP 주소를 가져옵니다.
      Returns:
      플레이어의 IP 주소
    • getDisconnectMessage

      public final @Nullable Component getDisconnectMessage()
      연결 해제 메시지를 가져옵니다. 메시지가 설정되지 않은 경우 플레이어의 연결을 해제하지 않습니다.
      Returns:
      연결 해제 메시지
    • setDisconnectMessage

      public final void setDisconnectMessage(@Nullable Component disconnectMessage)
      연결 해제 메시지를 설정합니다. 메시지가 설정되지 않은 경우 플레이어의 연결을 해제하지 않습니다.
      Parameters:
      disconnectMessage - 연결 해제 메시지
    • createAndGetAdvancements

      public abstract PlayerAdvancementData createAndGetAdvancements()
      플레이어 발전 과제 데이터를 생성하고 가져옵니다.

      플레이어의 로그인이 완료되기 전에 생성되기에 중복 로그인으로 인한 데이터 증발 등 데이터 관리에 주의해주세요.

      Returns:
      플레이어 발전 과제 데이터 (이미 생성된 경우 기존의 인스턴스를 가져옴)
    • getHandlers

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

      public static HandlerList getHandlerList()