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 bokintermediary net/minecraft/class_1814named 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 Formattingformatting -
Constructor Summary
Constructors Modifier Constructor Description privateRarity(Formatting formatting) -
Method Summary
-
Enum Constant Details
-
COMMON
- Mappings:
Namespace Name Mixin selector official aLbok;a:Lbok;intermediary field_8906Lnet/minecraft/class_1814;field_8906:Lnet/minecraft/class_1814;named COMMONLnet/minecraft/util/Rarity;COMMON:Lnet/minecraft/util/Rarity;
-
UNCOMMON
- Mappings:
Namespace Name Mixin selector official bLbok;b:Lbok;intermediary field_8907Lnet/minecraft/class_1814;field_8907:Lnet/minecraft/class_1814;named UNCOMMONLnet/minecraft/util/Rarity;UNCOMMON:Lnet/minecraft/util/Rarity;
-
RARE
- Mappings:
Namespace Name Mixin selector official cLbok;c:Lbok;intermediary field_8903Lnet/minecraft/class_1814;field_8903:Lnet/minecraft/class_1814;named RARELnet/minecraft/util/Rarity;RARE:Lnet/minecraft/util/Rarity;
-
EPIC
- Mappings:
Namespace Name Mixin selector official dLbok;d:Lbok;intermediary field_8904Lnet/minecraft/class_1814;field_8904:Lnet/minecraft/class_1814;named EPICLnet/minecraft/util/Rarity;EPIC:Lnet/minecraft/util/Rarity;
-
-
Field Details
-
formatting
- Mappings:
Namespace Name Mixin selector official eLbok;e:Lk;intermediary field_8908Lnet/minecraft/class_1814;field_8908:Lnet/minecraft/class_124;named formattingLnet/minecraft/util/Rarity;formatting:Lnet/minecraft/util/Formatting;
-
-
Constructor Details
-
Rarity
- Mappings:
Namespace Name Mixin selector official <init>Lbok;<init>(Ljava/lang/String;ILk;)Vintermediary <init>Lnet/minecraft/class_1814;<init>(Ljava/lang/String;ILnet/minecraft/class_124;)Vnamed <init>Lnet/minecraft/util/Rarity;<init>(Ljava/lang/String;ILnet/minecraft/util/Formatting;)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
-