Enum Class PlayerDropItemEvent.Reason

java.lang.Object
java.lang.Enum<PlayerDropItemEvent.Reason>
org.bukkit.event.player.PlayerDropItemEvent.Reason
All Implemented Interfaces:
Serializable, Comparable<PlayerDropItemEvent.Reason>, Constable
Enclosing class:
PlayerDropItemEvent

public static enum PlayerDropItemEvent.Reason extends Enum<PlayerDropItemEvent.Reason>
아이템 드롭 사유
  • Enum Constant Details

    • INVENTORY

      public static final PlayerDropItemEvent.Reason INVENTORY
      인벤토리와 관련된 작업을 수행한 경우
    • PRESS_DROP_KEY

      public static final PlayerDropItemEvent.Reason PRESS_DROP_KEY
      아이템 버리기 키를 누른 경우
    • PLUGIN

      public static final PlayerDropItemEvent.Reason PLUGIN
      플러그인 또는 명령어에 의해 아이템을 버린 경우
    • BUNDLE

      public static final PlayerDropItemEvent.Reason BUNDLE
      꾸러미에서 아이템이 던져진 경우
    • UNKNOWN

      public static final PlayerDropItemEvent.Reason UNKNOWN
      알 수 없음

      이는 Daydream이 아직 대응을 하지 못하였거나, NMS를 직접 호출하는 플러그인에 의해 발생합니다.

  • Method Details

    • values

      public static PlayerDropItemEvent.Reason[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PlayerDropItemEvent.Reason valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null