Enum Constant and Description |
---|
DEAFENING
The third rarity for rune items "Deafening", in gold, with a multiplier of 2.00.
|
EPIC
The fourth rarity for equipment items "Epic", in dark purple, with a multiplier of 2.50.
|
MAGIC
The second rarity for equipment items "Magic", in blue, with a multiplier of 1.50.
|
NORMAL
The first rarity for equipment items "Normal", in green, with a multiplier of 1.00.
|
RARE
The third rarity for equipment items "Rare", in gold, with a multiplier of 2.00.
|
SCREAMING
The second rarity for rune items "Screaming", in blue, with a multiplier of 1.50.
|
UNIQUE
The fifth rarity for equipment items "Unique", in dark red, with a multiplier of 3.00.
|
WHISPERING
The first rarity for rune items "Whispering", in green, with a multiplier of 1.00.
|
Modifier and Type | Field and Description |
---|---|
private org.bukkit.ChatColor |
rarityColor
The color of the rarity.
|
private double |
rarityMultiplier
The stat multiplier of the rarity.
|
private java.lang.String |
rarityName
The name of the rarity.
|
private int |
rarityStarCount
The star count of the rarity.
|
private java.lang.String |
rarityStars
The stars of the rarity.
|
Modifier and Type | Method and Description |
---|---|
org.bukkit.ChatColor |
getColor() |
double |
getMultiplier() |
java.lang.String |
getName() |
static Rarity |
getRandomEquipmentRarity()
Determines a random equipment rarity with a multiplier of 1-3 on a scale of 1-5 stars.
|
static Rarity |
getRandomRuneRarity()
Determines a random rune rarity with a multiplier of 1-2 on a scale of 1-3 stars.
|
int |
getStarCount() |
java.lang.String |
getStars() |
static Rarity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Rarity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Rarity NORMAL
public static final Rarity MAGIC
public static final Rarity RARE
public static final Rarity EPIC
public static final Rarity UNIQUE
public static final Rarity WHISPERING
public static final Rarity SCREAMING
public static final Rarity DEAFENING
private final java.lang.String rarityName
private final int rarityStarCount
private final java.lang.String rarityStars
private final org.bukkit.ChatColor rarityColor
private final double rarityMultiplier
public static Rarity[] values()
for (Rarity c : Rarity.values()) System.out.println(c);
public static Rarity valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static Rarity getRandomEquipmentRarity()
public static Rarity getRandomRuneRarity()
public java.lang.String getName()
public int getStarCount()
public java.lang.String getStars()
public org.bukkit.ChatColor getColor()
public double getMultiplier()