Enum Class DeathMessageType

java.lang.Object
java.lang.Enum<DeathMessageType>
org.bukkit.damage.DeathMessageType
All Implemented Interfaces:
Serializable, Comparable<DeathMessageType>, Constable

@Experimental public enum DeathMessageType extends Enum<DeathMessageType>
Represents a type of death message used by a DamageSource.
  • Enum Constant Details

    • DEFAULT

      public static final DeathMessageType DEFAULT
      No special death message logic is applied.
    • FALL_VARIANTS

      public static final DeathMessageType FALL_VARIANTS
      Shows a variant of fall damage death instead of a regular death message.
      Example: death.fell.assist.item
    • INTENTIONAL_GAME_DESIGN

      public static final DeathMessageType INTENTIONAL_GAME_DESIGN
      Shows the intentional game design death message instead of a regular death message.
  • Method Details

    • values

      public static DeathMessageType[] 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 DeathMessageType 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