public enum ItemRarity extends Enum<ItemRarity>
Modifier and Type | Method and Description |
---|---|
@NotNull net.kyori.adventure.text.format.TextColor |
getColor()
Gets the color formatting associated with the rarity.
|
static ItemRarity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ItemRarity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ItemRarity COMMON
public static final ItemRarity UNCOMMON
public static final ItemRarity RARE
public static final ItemRarity EPIC
public static ItemRarity[] values()
for (ItemRarity c : ItemRarity.values()) System.out.println(c);
public static ItemRarity valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2021. All rights reserved.