Package net.minecraft.command.permission
Enum Class PermissionLevel
- All Implemented Interfaces:
Serializable,Comparable<PermissionLevel>,Constable,StringIdentifiable
- Mappings:
Namespace Name named net/minecraft/command/permission/PermissionLevelintermediary net/minecraft/class_12094official bbr
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
StringIdentifiable.BasicCodec<S extends StringIdentifiable>, StringIdentifiable.EnumCodec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final IntFunction<PermissionLevel> static final com.mojang.serialization.Codec<PermissionLevel> private final intprivate final Stringstatic final com.mojang.serialization.Codec<PermissionLevel> Fields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.static PermissionLevelfromLevel(int level) intgetLevel()booleanisAtLeast(PermissionLevel other) static 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
- Mappings:
Namespace Name Mixin selector named ALLLnet/minecraft/command/permission/PermissionLevel;ALL:Lnet/minecraft/command/permission/PermissionLevel;intermediary field_63196Lnet/minecraft/class_12094;field_63196:Lnet/minecraft/class_12094;official aLbbr;a:Lbbr;
-
MODERATORS
- Mappings:
Namespace Name Mixin selector named MODERATORSLnet/minecraft/command/permission/PermissionLevel;MODERATORS:Lnet/minecraft/command/permission/PermissionLevel;intermediary field_63197Lnet/minecraft/class_12094;field_63197:Lnet/minecraft/class_12094;official bLbbr;b:Lbbr;
-
GAMEMASTERS
- Mappings:
Namespace Name Mixin selector named GAMEMASTERSLnet/minecraft/command/permission/PermissionLevel;GAMEMASTERS:Lnet/minecraft/command/permission/PermissionLevel;intermediary field_63198Lnet/minecraft/class_12094;field_63198:Lnet/minecraft/class_12094;official cLbbr;c:Lbbr;
-
ADMINS
- Mappings:
Namespace Name Mixin selector named ADMINSLnet/minecraft/command/permission/PermissionLevel;ADMINS:Lnet/minecraft/command/permission/PermissionLevel;intermediary field_63199Lnet/minecraft/class_12094;field_63199:Lnet/minecraft/class_12094;official dLbbr;d:Lbbr;
-
OWNERS
- Mappings:
Namespace Name Mixin selector named OWNERSLnet/minecraft/command/permission/PermissionLevel;OWNERS:Lnet/minecraft/command/permission/PermissionLevel;intermediary field_63200Lnet/minecraft/class_12094;field_63200:Lnet/minecraft/class_12094;official eLbbr;e:Lbbr;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/command/permission/PermissionLevel;CODEC:Lcom/mojang/serialization/Codec;intermediary field_63201Lnet/minecraft/class_12094;field_63201:Lcom/mojang/serialization/Codec;official fLbbr;f:Lcom/mojang/serialization/Codec;
-
BY_LEVEL
- Mappings:
Namespace Name Mixin selector named BY_LEVELLnet/minecraft/command/permission/PermissionLevel;BY_LEVEL:Ljava/util/function/IntFunction;intermediary field_63203Lnet/minecraft/class_12094;field_63203:Ljava/util/function/IntFunction;official hLbbr;h:Ljava/util/function/IntFunction;
-
NUMERIC_CODEC
- Mappings:
Namespace Name Mixin selector named NUMERIC_CODECLnet/minecraft/command/permission/PermissionLevel;NUMERIC_CODEC:Lcom/mojang/serialization/Codec;intermediary field_63202Lnet/minecraft/class_12094;field_63202:Lcom/mojang/serialization/Codec;official gLbbr;g:Lcom/mojang/serialization/Codec;
-
name
- Mappings:
Namespace Name Mixin selector named nameLnet/minecraft/command/permission/PermissionLevel;name:Ljava/lang/String;intermediary field_63204Lnet/minecraft/class_12094;field_63204:Ljava/lang/String;official iLbbr;i:Ljava/lang/String;
-
level
private final int level- Mappings:
Namespace Name Mixin selector named levelLnet/minecraft/command/permission/PermissionLevel;level:Iintermediary field_63205Lnet/minecraft/class_12094;field_63205:Iofficial jLbbr;j:I
-
-
Constructor Details
-
PermissionLevel
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/command/permission/PermissionLevel;<init>(Ljava/lang/String;ILjava/lang/String;I)Vintermediary <init>Lnet/minecraft/class_12094;<init>(Ljava/lang/String;ILjava/lang/String;I)Vofficial <init>Lbbr;<init>(Ljava/lang/String;ILjava/lang/String;I)V
-
-
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
- Mappings:
Namespace Name Mixin selector named isAtLeastLnet/minecraft/command/permission/PermissionLevel;isAtLeast(Lnet/minecraft/command/permission/PermissionLevel;)Zintermediary method_75028Lnet/minecraft/class_12094;method_75028(Lnet/minecraft/class_12094;)Zofficial aLbbr;a(Lbbr;)Z
-
fromLevel
- Mappings:
Namespace Name Mixin selector named fromLevelLnet/minecraft/command/permission/PermissionLevel;fromLevel(I)Lnet/minecraft/command/permission/PermissionLevel;intermediary method_75027Lnet/minecraft/class_12094;method_75027(I)Lnet/minecraft/class_12094;official aLbbr;a(I)Lbbr;
-
getLevel
public int getLevel()- Mappings:
Namespace Name Mixin selector named getLevelLnet/minecraft/command/permission/PermissionLevel;getLevel()Iintermediary method_75026Lnet/minecraft/class_12094;method_75026()Iofficial aLbbr;a()I
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asStringin interfaceStringIdentifiable- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;official cLbhi;c()Ljava/lang/String;
-