public enum WauzPetRarity extends java.lang.Enum<WauzPetRarity>
Enum Constant and Description |
---|
EPIC
The fourth rarity for pets "Epic", in dark purple, with max stat a multiplier of 4.
|
MAGIC
The second rarity for pets "Magic", in blue, with a max stat multiplier of 2.
|
NORMAL
The first rarity for pets "Normal", in green, with a max stat multiplier of 1.
|
RARE
The third rarity for pets "Rare", in gold, with a max stat multiplier of 3.
|
UNIQUE
The fifth rarity for pets "Unique", in dark red, with a max stat multiplier of 5.
|
Modifier and Type | Field and Description |
---|---|
private org.bukkit.ChatColor |
color
The color of the pet rarity.
|
private org.bukkit.Material |
material
The spawn egg material of the pet rarity.
|
private int |
multiplier
The max stat multiplier of the pet rarity.
|
private java.lang.String |
name
The name of the pet rarity.
|
private java.lang.String |
rarityStars
The stars of the pet rarity.
|
Modifier and Type | Method and Description |
---|---|
static WauzPetRarity |
determineRarity(org.bukkit.inventory.ItemStack itemStack)
Determines the pet rarity of the given item stack's material.
|
org.bukkit.ChatColor |
getColor() |
org.bukkit.Material |
getMaterial() |
int |
getMultiplier() |
java.lang.String |
getName() |
java.lang.String |
getStars() |
static WauzPetRarity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WauzPetRarity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WauzPetRarity NORMAL
public static final WauzPetRarity MAGIC
public static final WauzPetRarity RARE
public static final WauzPetRarity EPIC
public static final WauzPetRarity UNIQUE
private final java.lang.String name
private final int multiplier
private final java.lang.String rarityStars
private final org.bukkit.ChatColor color
private final org.bukkit.Material material
public static WauzPetRarity[] values()
for (WauzPetRarity c : WauzPetRarity.values()) System.out.println(c);
public static WauzPetRarity 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 WauzPetRarity determineRarity(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item stack to get the rarity of.public java.lang.String getName()
public int getMultiplier()
public java.lang.String getStars()
public org.bukkit.ChatColor getColor()
public org.bukkit.Material getMaterial()