Package dev.plex.rank.enums
Enum Class Rank
- All Implemented Interfaces:
dev.plex.api.rank.IRank<Rank>
,Serializable
,Comparable<Rank>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.text.Component
boolean
org.json.JSONObject
toJSON()
static Rank
Returns the enum constant of this class with the specified name.static Rank[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface dev.plex.api.rank.IRank
getColor, getLevel, getLoginMessage, getReadable, setLoginMessage, setPrefix
-
Enum Constant Details
-
IMPOSTOR
-
NONOP
-
OP
-
ADMIN
-
SENIOR_ADMIN
-
EXECUTIVE
-
-
Field Details
-
level
private final int level -
loginMessage
-
readable
-
prefix
-
color
private final net.kyori.adventure.text.format.NamedTextColor color
-
-
Constructor Details
-
Rank
-
-
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
-
isAtLeast
- Specified by:
isAtLeast
in interfacedev.plex.api.rank.IRank<Rank>
-
getPrefix
public net.kyori.adventure.text.Component getPrefix()- Specified by:
getPrefix
in interfacedev.plex.api.rank.IRank<Rank>
-
toJSON
public org.json.JSONObject toJSON()- Specified by:
toJSON
in interfacedev.plex.api.rank.IRank<Rank>
-