add color to Rarity.java
This commit is contained in:
parent
ed6cf32cfd
commit
3c47676b39
1 changed files with 36 additions and 19 deletions
|
@ -1,28 +1,45 @@
|
|||
package me.unurled.sacredrealms.sr.components.item;
|
||||
|
||||
import org.bukkit.NamespacedKey;
|
||||
import net.kyori.adventure.text.format.NamedTextColor;
|
||||
import net.kyori.adventure.text.format.TextColor;
|
||||
|
||||
public enum Rarity {
|
||||
COMMON("<white>Common", "COMMON", 1, NamedTextColor.WHITE),
|
||||
UNCOMMON("<green>UnCommon", "UnCOMMON", 2, NamedTextColor.GREEN),
|
||||
RARE("<dark_aqua>Rare", "RARE", 3, NamedTextColor.DARK_AQUA),
|
||||
EPIC("<dark_purple>Epic", "EPIC", 4, NamedTextColor.DARK_PURPLE),
|
||||
LEGENDARY("<gold>Legendary", "LEGENDARY", 5, NamedTextColor.GOLD),
|
||||
MYTHIC("<light_purple>Mythic", "MYTHIC", 6, NamedTextColor.LIGHT_PURPLE),
|
||||
SPECIAL("<red>Special", "SPECIAL", 7, NamedTextColor.RED),
|
||||
UNIQUE("<yellow>Unique", "UNIQUE", 8, NamedTextColor.YELLOW),
|
||||
ADMIN(
|
||||
"<color:#800000><obf>aa</obf><dark_red>Admin</dark_red><obf>aa</obf></color>", "ADMIN", 100, NamedTextColor.DARK_RED);
|
||||
|
||||
COMMON("<white>Common", "COMMON", 1),
|
||||
UNCOMMON("<green>UnCommon", "UnCOMMON", 2),
|
||||
RARE("<dark_aqua>Rare", "RARE", 3),
|
||||
EPIC("<dark_purple>Epic", "EPIC", 4),
|
||||
LEGENDARY("<gold>Legendary", "LEGENDARY", 5),
|
||||
MYTHIC("<light_purple>Mythic", "MYTHIC", 6),
|
||||
SPECIAL("<red>Special", "SPECIAL", 7),
|
||||
UNIQUE("<yellow>Unique", "UNIQUE", 8),
|
||||
ADMIN("<color:#800000><obf>aa</obf><dark_red>Admin</dark_red><obf>aa</obf></color>", "ADMIN",
|
||||
100);
|
||||
private final String name;
|
||||
private final String ID;
|
||||
private final Integer weight;
|
||||
private final TextColor color;
|
||||
|
||||
Rarity(String name, String ID, Integer weight, TextColor color) {
|
||||
this.name = name;
|
||||
this.ID = ID;
|
||||
this.weight = weight;
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
private final String name;
|
||||
private final String ID;
|
||||
private final Integer weight;
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
Rarity(String name, String ID, Integer weight) {
|
||||
this.name = name;
|
||||
this.ID = ID;
|
||||
this.weight = weight;
|
||||
}
|
||||
public String getID() {
|
||||
return ID;
|
||||
}
|
||||
|
||||
public Integer getWeight() {
|
||||
return weight;
|
||||
}
|
||||
|
||||
public TextColor getColor() {
|
||||
return color;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue