Package dev.cwhead.GravesX.graveutils
Enum Class GraveProtectionRole.GraveRole
java.lang.Object
java.lang.Enum<GraveProtectionRole.GraveRole>
dev.cwhead.GravesX.graveutils.GraveProtectionRole.GraveRole
- All Implemented Interfaces:
Serializable,Comparable<GraveProtectionRole.GraveRole>,Constable
- Enclosing class:
GraveProtectionRole
Enum representing the role of a player relative to a grave.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe player killed the entity that created the grave.Neither owner nor killer exists (null), and the player is another player.The player is the owner, but the killer is missing (null).The player is neither owner nor killer but exists while both IDs are present.The player is the owner of the grave. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static GraveProtectionRole.GraveRole[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OWNER
The player is the owner of the grave. -
KILLER
The player killed the entity that created the grave. -
OTHER
The player is neither owner nor killer but exists while both IDs are present. -
MISSING_OWNER
The player is the owner, but the killer is missing (null). -
MISSING_OTHER
Neither owner nor killer exists (null), and the player is another player.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-