Enum Rarity

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

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

    • COMMON

      public static final Rarity COMMON
      Mappings:
      Namespace Name Mixin selector
      official a Laaj;a:Laaj;
      intermediary field_41 Lnet/minecraft/class_12;field_41:Lnet/minecraft/class_12;
      named COMMON Lnet/minecraft/util/Rarity;COMMON:Lnet/minecraft/util/Rarity;
    • UNCOMMON

      public static final Rarity UNCOMMON
      Mappings:
      Namespace Name Mixin selector
      official b Laaj;b:Laaj;
      intermediary field_42 Lnet/minecraft/class_12;field_42:Lnet/minecraft/class_12;
      named UNCOMMON Lnet/minecraft/util/Rarity;UNCOMMON:Lnet/minecraft/util/Rarity;
    • RARE

      public static final Rarity RARE
      Mappings:
      Namespace Name Mixin selector
      official c Laaj;c:Laaj;
      intermediary field_43 Lnet/minecraft/class_12;field_43:Lnet/minecraft/class_12;
      named RARE Lnet/minecraft/util/Rarity;RARE:Lnet/minecraft/util/Rarity;
    • EPIC

      public static final Rarity EPIC
      Mappings:
      Namespace Name Mixin selector
      official d Laaj;d:Laaj;
      intermediary field_44 Lnet/minecraft/class_12;field_44:Lnet/minecraft/class_12;
      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 Laaj;e:La;
      intermediary field_45 Lnet/minecraft/class_12;field_45:Lnet/minecraft/class_1;
      named formatting Lnet/minecraft/util/Rarity;formatting:Lnet/minecraft/util/Formatting;
    • name

      public final String name
      Mappings:
      Namespace Name Mixin selector
      official f Laaj;f:Ljava/lang/String;
      intermediary field_46 Lnet/minecraft/class_12;field_46:Ljava/lang/String;
      named name Lnet/minecraft/util/Rarity;name:Ljava/lang/String;
  • Constructor Details

    • Rarity

      private Rarity​(Formatting formatting, String name)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laaj;<init>(Ljava/lang/String;ILa;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_12;<init>(Ljava/lang/String;ILnet/minecraft/class_1;Ljava/lang/String;)V
      named <init> Lnet/minecraft/util/Rarity;<init>(Ljava/lang/String;ILnet/minecraft/util/Formatting;Ljava/lang/String;)V
  • Method Details

    • values

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

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