Enum GamePlayerDeathEvent.DeathCause
- java.lang.Object
-
- java.lang.Enum<GamePlayerDeathEvent.DeathCause>
-
- com.ericlam.mc.minigames.core.event.player.GamePlayerDeathEvent.DeathCause
-
- All Implemented Interfaces:
Serializable
,Comparable<GamePlayerDeathEvent.DeathCause>
- Enclosing class:
- GamePlayerDeathEvent
public static enum GamePlayerDeathEvent.DeathCause extends Enum<GamePlayerDeathEvent.DeathCause>
死亡原因
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BUKKIT_DAMAGE
普通傷害BUKKIT_DEATH
普通死亡BUKKIT_KILL
普通殺害CRACKSHOT
槍械射死CUSTOM
自定義
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getValue()
獲取自定義死亡原因static GamePlayerDeathEvent.DeathCause
ofCustom(String value)
創建自定義死亡的類型static GamePlayerDeathEvent.DeathCause
valueOf(String name)
Returns the enum constant of this type with the specified name.static GamePlayerDeathEvent.DeathCause[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CRACKSHOT
public static final GamePlayerDeathEvent.DeathCause CRACKSHOT
槍械射死- See Also:
CrackShotDeathEvent
-
BUKKIT_DAMAGE
public static final GamePlayerDeathEvent.DeathCause BUKKIT_DAMAGE
普通傷害
-
BUKKIT_KILL
public static final GamePlayerDeathEvent.DeathCause BUKKIT_KILL
普通殺害
-
BUKKIT_DEATH
public static final GamePlayerDeathEvent.DeathCause BUKKIT_DEATH
普通死亡
-
CUSTOM
public static final GamePlayerDeathEvent.DeathCause CUSTOM
自定義
-
-
Method Detail
-
values
public static GamePlayerDeathEvent.DeathCause[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GamePlayerDeathEvent.DeathCause c : GamePlayerDeathEvent.DeathCause.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GamePlayerDeathEvent.DeathCause 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 nameNullPointerException
- if the argument is null
-
ofCustom
public static GamePlayerDeathEvent.DeathCause ofCustom(String value)
創建自定義死亡的類型- Parameters:
value
- 死亡原因- Returns:
- 死亡類型
-
-