Package net.minecraft.enchantment
Enum Class Enchantment.Rarity
- All Implemented Interfaces:
Serializable,Comparable<Enchantment.Rarity>,Constable
- Enclosing class:
- Enchantment
- Mappings:
Namespace Name official agm$aintermediary net/minecraft/class_1127$class_2703named net/minecraft/enchantment/Enchantment$Rarity
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintstatic Enchantment.RarityReturns the enum constant of this class with the specified name.static Enchantment.Rarity[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMMON
- Mappings:
Namespace Name Mixin selector official aLagm$a;a:Lagm$a;intermediary field_12389Lnet/minecraft/class_1127$class_2703;field_12389:Lnet/minecraft/class_1127$class_2703;named COMMONLnet/minecraft/enchantment/Enchantment$Rarity;COMMON:Lnet/minecraft/enchantment/Enchantment$Rarity;
-
UNCOMMON
- Mappings:
Namespace Name Mixin selector official bLagm$a;b:Lagm$a;intermediary field_12390Lnet/minecraft/class_1127$class_2703;field_12390:Lnet/minecraft/class_1127$class_2703;named UNCOMMONLnet/minecraft/enchantment/Enchantment$Rarity;UNCOMMON:Lnet/minecraft/enchantment/Enchantment$Rarity;
-
RARE
- Mappings:
Namespace Name Mixin selector official cLagm$a;c:Lagm$a;intermediary field_12391Lnet/minecraft/class_1127$class_2703;field_12391:Lnet/minecraft/class_1127$class_2703;named RARELnet/minecraft/enchantment/Enchantment$Rarity;RARE:Lnet/minecraft/enchantment/Enchantment$Rarity;
-
VERY_RARE
- Mappings:
Namespace Name Mixin selector official dLagm$a;d:Lagm$a;intermediary field_12392Lnet/minecraft/class_1127$class_2703;field_12392:Lnet/minecraft/class_1127$class_2703;named VERY_RARELnet/minecraft/enchantment/Enchantment$Rarity;VERY_RARE:Lnet/minecraft/enchantment/Enchantment$Rarity;
-
-
Field Details
-
chance
private final int chance- Mappings:
Namespace Name Mixin selector official eLagm$a;e:Iintermediary field_12393Lnet/minecraft/class_1127$class_2703;field_12393:Inamed chanceLnet/minecraft/enchantment/Enchantment$Rarity;chance:I
-
-
Constructor Details
-
Rarity
private Rarity(int chance) - Mappings:
Namespace Name Mixin selector official <init>Lagm$a;<init>(Ljava/lang/String;II)Vintermediary <init>Lnet/minecraft/class_1127$class_2703;<init>(Ljava/lang/String;II)Vnamed <init>Lnet/minecraft/enchantment/Enchantment$Rarity;<init>(Ljava/lang/String;II)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
-
getChance
public int getChance()- Mappings:
Namespace Name Mixin selector official aLagm$a;a()Iintermediary method_11450Lnet/minecraft/class_1127$class_2703;method_11450()Inamed getChanceLnet/minecraft/enchantment/Enchantment$Rarity;getChance()I
-