EnumRarity .java

net.minecraft.item.EnumRarity (enum): members: COMMON, UNCOMMON, RARE, EPIC, rarityColor, rarityName. strings: "Uncommon", "Common", "Epic", "Rare".

net.minecraft.itemenum27 linescommon722 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Fields & Constants (2)

rarityColor
rarityName

String literals (4)

"Common"
"Uncommon"
"Rare"
"Epic"

Code Graph: Dependencies (1)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

EnumRarity.java27 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.item;
2
3
import net.minecraft.util.EnumChatFormatting;
4
5
public enum EnumRarity
6
{
7
    COMMON(EnumChatFormatting.WHITE, "Common"),
8
    UNCOMMON(EnumChatFormatting.YELLOW, "Uncommon"),
9
    RARE(EnumChatFormatting.AQUA, "Rare"),
10
    EPIC(EnumChatFormatting.LIGHT_PURPLE, "Epic");
11
12
    /**
13
     * A decimal representation of the hex color codes of a the color assigned to this rarity type. (13 becomes d as in
14
     * \247d which is light purple)
15
     */
16
    public final EnumChatFormatting rarityColor;
17
18
    /** Rarity name. */
19
    public final String rarityName;
20
21
    private EnumRarity(EnumChatFormatting color, String name)
22
    {
23
        this.rarityColor = color;
24
        this.rarityName = name;
25
    }
26
}
27

Deobfuscated MCP 1.8.9 source of EnumRarity from Marcelektro/MavenMCP-1.8.9 (net/minecraft/item/EnumRarity.java), stored verbatim.