Enum Class Enchantment.Rarity

java.lang.Object
java.lang.Enum<Enchantment.Rarity>
net.minecraft.enchantment.Enchantment.Rarity
All Implemented Interfaces:
Serializable, Comparable<Enchantment.Rarity>, Constable
Enclosing class:
Enchantment

public static enum Enchantment.Rarity extends Enum<Enchantment.Rarity>
Mappings:
Namespace Name
official aii$a
intermediary net/minecraft/class_1127$class_2703
named net/minecraft/enchantment/Enchantment$Rarity
  • Enum Constant Details

    • COMMON

      public static final Enchantment.Rarity COMMON
      Mappings:
      Namespace Name Mixin selector
      official a Laii$a;a:Laii$a;
      intermediary field_12389 Lnet/minecraft/class_1127$class_2703;field_12389:Lnet/minecraft/class_1127$class_2703;
      named COMMON Lnet/minecraft/enchantment/Enchantment$Rarity;COMMON:Lnet/minecraft/enchantment/Enchantment$Rarity;
    • UNCOMMON

      public static final Enchantment.Rarity UNCOMMON
      Mappings:
      Namespace Name Mixin selector
      official b Laii$a;b:Laii$a;
      intermediary field_12390 Lnet/minecraft/class_1127$class_2703;field_12390:Lnet/minecraft/class_1127$class_2703;
      named UNCOMMON Lnet/minecraft/enchantment/Enchantment$Rarity;UNCOMMON:Lnet/minecraft/enchantment/Enchantment$Rarity;
    • RARE

      public static final Enchantment.Rarity RARE
      Mappings:
      Namespace Name Mixin selector
      official c Laii$a;c:Laii$a;
      intermediary field_12391 Lnet/minecraft/class_1127$class_2703;field_12391:Lnet/minecraft/class_1127$class_2703;
      named RARE Lnet/minecraft/enchantment/Enchantment$Rarity;RARE:Lnet/minecraft/enchantment/Enchantment$Rarity;
    • VERY_RARE

      public static final Enchantment.Rarity VERY_RARE
      Mappings:
      Namespace Name Mixin selector
      official d Laii$a;d:Laii$a;
      intermediary field_12392 Lnet/minecraft/class_1127$class_2703;field_12392:Lnet/minecraft/class_1127$class_2703;
      named VERY_RARE Lnet/minecraft/enchantment/Enchantment$Rarity;VERY_RARE:Lnet/minecraft/enchantment/Enchantment$Rarity;
  • Field Details

    • chance

      private final int chance
      Mappings:
      Namespace Name Mixin selector
      official e Laii$a;e:I
      intermediary field_12393 Lnet/minecraft/class_1127$class_2703;field_12393:I
      named chance Lnet/minecraft/enchantment/Enchantment$Rarity;chance:I
  • Constructor Details

    • Rarity

      private Rarity(int chance)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laii$a;<init>(Ljava/lang/String;II)V
      intermediary <init> Lnet/minecraft/class_1127$class_2703;<init>(Ljava/lang/String;II)V
      named <init> Lnet/minecraft/enchantment/Enchantment$Rarity;<init>(Ljava/lang/String;II)V
  • Method Details

    • values

      public static Enchantment.Rarity[] 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

      public static Enchantment.Rarity valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getChance

      public int getChance()
      Mappings:
      Namespace Name Mixin selector
      official a Laii$a;a()I
      intermediary method_11450 Lnet/minecraft/class_1127$class_2703;method_11450()I
      named getChance Lnet/minecraft/enchantment/Enchantment$Rarity;getChance()I