Enum Class PermissionLevel
- All Implemented Interfaces:
Serializable, Comparable<PermissionLevel>, Constable, StringRepresentable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface StringRepresentable
StringRepresentable.EnumCodec<E>, StringRepresentable.StringRepresentableCodec<S> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final IntFunction<PermissionLevel> static final com.mojang.serialization.Codec<PermissionLevel> private final intstatic final com.mojang.serialization.Codec<PermissionLevel> private final StringFields inherited from interface StringRepresentable
PRE_BUILT_MAP_THRESHOLD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PermissionLevelbyId(int level) intid()booleanstatic PermissionLevelReturns the enum constant of this class with the specified name.static PermissionLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL
-
MODERATORS
-
GAMEMASTERS
-
ADMINS
-
OWNERS
-
-
Field Details
-
CODEC
-
BY_ID
-
INT_CODEC
-
name
-
id
private final int id
-
-
Constructor Details
-
PermissionLevel
-
-
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
-
isEqualOrHigherThan
-
byId
-
id
public int id() -
getSerializedName
- Specified by:
getSerializedNamein interfaceStringRepresentable
-