Package net.minecraft.util
Enum Rarity
- All Implemented Interfaces:
Serializable,Comparable<Rarity>,java.lang.constant.Constable
public enum Rarity extends Enum<Rarity>
- Mappings:
Namespace Name official aajintermediary net/minecraft/class_12named net/minecraft/util/Rarity
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description FormattingformattingStringname -
Constructor Summary
Constructors Modifier Constructor Description privateRarity(Formatting formatting, String name) -
Method Summary
-
Enum Constant Details
-
COMMON
- Mappings:
Namespace Name Mixin selector official aLaaj;a:Laaj;intermediary field_41Lnet/minecraft/class_12;field_41:Lnet/minecraft/class_12;named COMMONLnet/minecraft/util/Rarity;COMMON:Lnet/minecraft/util/Rarity;
-
UNCOMMON
- Mappings:
Namespace Name Mixin selector official bLaaj;b:Laaj;intermediary field_42Lnet/minecraft/class_12;field_42:Lnet/minecraft/class_12;named UNCOMMONLnet/minecraft/util/Rarity;UNCOMMON:Lnet/minecraft/util/Rarity;
-
RARE
- Mappings:
Namespace Name Mixin selector official cLaaj;c:Laaj;intermediary field_43Lnet/minecraft/class_12;field_43:Lnet/minecraft/class_12;named RARELnet/minecraft/util/Rarity;RARE:Lnet/minecraft/util/Rarity;
-
EPIC
- Mappings:
Namespace Name Mixin selector official dLaaj;d:Laaj;intermediary field_44Lnet/minecraft/class_12;field_44:Lnet/minecraft/class_12;named EPICLnet/minecraft/util/Rarity;EPIC:Lnet/minecraft/util/Rarity;
-
-
Field Details
-
formatting
- Mappings:
Namespace Name Mixin selector official eLaaj;e:La;intermediary field_45Lnet/minecraft/class_12;field_45:Lnet/minecraft/class_1;named formattingLnet/minecraft/util/Rarity;formatting:Lnet/minecraft/util/Formatting;
-
name
- Mappings:
Namespace Name Mixin selector official fLaaj;f:Ljava/lang/String;intermediary field_46Lnet/minecraft/class_12;field_46:Ljava/lang/String;named nameLnet/minecraft/util/Rarity;name:Ljava/lang/String;
-
-
Constructor Details
-
Rarity
- Mappings:
Namespace Name Mixin selector official <init>Laaj;<init>(Ljava/lang/String;ILa;Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_12;<init>(Ljava/lang/String;ILnet/minecraft/class_1;Ljava/lang/String;)Vnamed <init>Lnet/minecraft/util/Rarity;<init>(Ljava/lang/String;ILnet/minecraft/util/Formatting;Ljava/lang/String;)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-