Enum Class Rarity

java.lang.Object
java.lang.Enum<Rarity>
net.minecraft.util.Rarity
All Implemented Interfaces:
Serializable, Comparable<Rarity>, Constable

public enum Rarity extends Enum<Rarity>
Mappings:
Namespace Name
official cgq
intermediary net/minecraft/class_1814
named net/minecraft/util/Rarity
  • Enum Constant Details

    • COMMON

      public static final Rarity COMMON
      Mappings:
      Namespace Name Mixin selector
      official a Lcgq;a:Lcgq;
      intermediary field_8906 Lnet/minecraft/class_1814;field_8906:Lnet/minecraft/class_1814;
      named COMMON Lnet/minecraft/util/Rarity;COMMON:Lnet/minecraft/util/Rarity;
    • UNCOMMON

      public static final Rarity UNCOMMON
      Mappings:
      Namespace Name Mixin selector
      official b Lcgq;b:Lcgq;
      intermediary field_8907 Lnet/minecraft/class_1814;field_8907:Lnet/minecraft/class_1814;
      named UNCOMMON Lnet/minecraft/util/Rarity;UNCOMMON:Lnet/minecraft/util/Rarity;
    • RARE

      public static final Rarity RARE
      Mappings:
      Namespace Name Mixin selector
      official c Lcgq;c:Lcgq;
      intermediary field_8903 Lnet/minecraft/class_1814;field_8903:Lnet/minecraft/class_1814;
      named RARE Lnet/minecraft/util/Rarity;RARE:Lnet/minecraft/util/Rarity;
    • EPIC

      public static final Rarity EPIC
      Mappings:
      Namespace Name Mixin selector
      official d Lcgq;d:Lcgq;
      intermediary field_8904 Lnet/minecraft/class_1814;field_8904:Lnet/minecraft/class_1814;
      named EPIC Lnet/minecraft/util/Rarity;EPIC:Lnet/minecraft/util/Rarity;
  • Field Details

    • formatting

      public final Formatting formatting
      Mappings:
      Namespace Name Mixin selector
      official e Lcgq;e:Ln;
      intermediary field_8908 Lnet/minecraft/class_1814;field_8908:Lnet/minecraft/class_124;
      named formatting Lnet/minecraft/util/Rarity;formatting:Lnet/minecraft/util/Formatting;
  • Constructor Details

    • Rarity

      private Rarity(Formatting formatting)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcgq;<init>(Ljava/lang/String;ILn;)V
      intermediary <init> Lnet/minecraft/class_1814;<init>(Ljava/lang/String;ILnet/minecraft/class_124;)V
      named <init> Lnet/minecraft/util/Rarity;<init>(Ljava/lang/String;ILnet/minecraft/util/Formatting;)V
  • Method Details

    • values

      public static 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 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