Class SendEntityEquipmentEvent

All Implemented Interfaces:
Cancellable

@NullMarked public final class SendEntityEquipmentEvent extends SendPacketEvent implements Cancellable
서버가 클라이언트에게 PacketType.Server.ENTITY_EQUIPMENT 패킷을 전송할 때 호출됩니다.
  • Constructor Details

  • Method Details

    • getTarget

      public Entity getTarget()
      이 패킷의 대상 엔티티를 가져옵니다.
      Returns:
      패킷의 대상 엔티티
    • getReason

      public SendEntityEquipmentEvent.Reason getReason()
      이벤트 호출 사유를 가져옵니다.
      Returns:
      이벤트 호출 사유
    • getData

      public Map<EquipmentSlot,ItemStack> getData()
      전송 예정인 장비 목록을 반환하며, 목록을 수정할 수 있습니다.
      Returns:
      장비 목록
    • isCancelled

      public boolean isCancelled()
      Description copied from interface: Cancellable
      Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins
      Specified by:
      isCancelled in interface Cancellable
      Returns:
      true if this event is cancelled
    • setCancelled

      public void setCancelled(boolean cancel)
      Description copied from interface: Cancellable
      Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.
      Specified by:
      setCancelled in interface Cancellable
      Parameters:
      cancel - true if you wish to cancel this event
    • getHandlers

      public HandlerList getHandlers()
      Overrides:
      getHandlers in class SendPacketEvent
    • getHandlerList

      public static HandlerList getHandlerList()