Enum KillMessages.Event
- All Implemented Interfaces:
Serializable,Comparable<KillMessages.Event>,java.lang.constant.Constable
- Enclosing class:
KillMessages
The different events that can trigger a kill message.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionVictim dies by another player through an arrow.Victim's bed got broken by an enemy.Victim through the help of an enemy's companion (e.g. an iron golem).Victim dies through a generic death (e.g. killed through swords by an enemy).Victim through an explosion (e.g. a fireball or TNT).Victim died through fall damage while pushed down by an enemy.Victim dies and is being eliminated (his bed is broken).Victim fell into the void while pushed by an enemy. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable KillMessages.EventGet an event by its name (case-insensitive).@Nullable KillMessages.EventGet the fallback event if this event has no messages configured.static KillMessages.EventReturns the enum constant of this type with the specified name.static KillMessages.Event[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DEATH
Victim dies through a generic death (e.g. killed through swords by an enemy). -
FINAL
Victim dies and is being eliminated (his bed is broken). -
ARROW
Victim dies by another player through an arrow. -
FALL
Victim died through fall damage while pushed down by an enemy. -
VOID
Victim fell into the void while pushed by an enemy. -
EXPLOSIVE
Victim through an explosion (e.g. a fireball or TNT). -
COMPANION
Victim through the help of an enemy's companion (e.g. an iron golem). -
BED
Victim's bed got broken by an enemy.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getFallback
Get the fallback event if this event has no messages configured.- Returns:
- The fallback event, or
nullif none
-
getByName
Get an event by its name (case-insensitive).- Parameters:
name- The name to search for- Returns:
- The event, or
nullif not found
-