Enum KillMessages.Event

java.lang.Object
java.lang.Enum<KillMessages.Event>
de.marcely.bedwars.api.cosmetics.shop.data.KillMessages.Event
All Implemented Interfaces:
Serializable, Comparable<KillMessages.Event>, java.lang.constant.Constable
Enclosing class:
KillMessages

public static enum KillMessages.Event extends Enum<KillMessages.Event>
The different events that can trigger a kill message.
  • Enum Constant Details

    • DEATH

      public static final KillMessages.Event DEATH
      Victim dies through a generic death (e.g. killed through swords by an enemy).
    • FINAL

      public static final KillMessages.Event FINAL
      Victim dies and is being eliminated (his bed is broken).
    • ARROW

      public static final KillMessages.Event ARROW
      Victim dies by another player through an arrow.
    • FALL

      public static final KillMessages.Event FALL
      Victim died through fall damage while pushed down by an enemy.
    • VOID

      public static final KillMessages.Event VOID
      Victim fell into the void while pushed by an enemy.
    • EXPLOSIVE

      public static final KillMessages.Event EXPLOSIVE
      Victim through an explosion (e.g. a fireball or TNT).
    • COMPANION

      public static final KillMessages.Event COMPANION
      Victim through the help of an enemy's companion (e.g. an iron golem).
    • BED

      public static final KillMessages.Event BED
      Victim's bed got broken by an enemy.
  • Method Details

    • values

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

      public static KillMessages.Event valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getFallback

      @Nullable public @Nullable KillMessages.Event getFallback()
      Get the fallback event if this event has no messages configured.
      Returns:
      The fallback event, or null if none
    • getByName

      @Nullable public static @Nullable KillMessages.Event getByName(String name)
      Get an event by its name (case-insensitive).
      Parameters:
      name - The name to search for
      Returns:
      The event, or null if not found