Class PlayerBottleIntoItemEvent

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

@NullMarked public final class PlayerBottleIntoItemEvent extends PlayerEvent implements Cancellable
플레이어가 병에 무언가를 담았을 때 호출됩니다.
  • Constructor Details

  • Method Details

    • 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
    • getType

      병에 담길 아이템의 타입을 가져옵니다.
      Returns:
      병에 담길 아이템의 타입
    • getClickedBlock

      public @Nullable Block getClickedBlock()
      플레이어가 상호 작용한 블록을 가져옵니다.
      PlayerBottleIntoItemEvent.ItemType.WATER인 경우에만 null이 아닙니다.
      Returns:
      플레이어가 상호 작용한 블록
    • getClickedEntity

      public @Nullable Entity getClickedEntity()
      플레이어가 상호 작용한 엔티티를 가져옵니다.
      PlayerBottleIntoItemEvent.ItemType.DRAGON_BREATH인 경우에만 null이 아닙니다.
      Returns:
      플레이어가 상호 작용한 엔티티
    • getHandlers

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

      public static HandlerList getHandlerList()