diff options
author | Cow <cow@volloeko.de> | 2020-07-27 23:50:02 +0200 |
---|---|---|
committer | Cow <cow@volloeko.de> | 2020-07-27 23:50:02 +0200 |
commit | 023589c75ae72ddc5ff75fa7235bce4d102b2ad1 (patch) | |
tree | fbb43090ea1ff3d6b3a3b1fb15bbd2c5446ddc7e /src/main/java/eu/olli/cowlection/data/DataHelper.java | |
parent | 0027466a564a9a6bebbdeed05192a616175ea6f3 (diff) | |
download | Cowlection-023589c75ae72ddc5ff75fa7235bce4d102b2ad1.tar.gz Cowlection-023589c75ae72ddc5ff75fa7235bce4d102b2ad1.tar.bz2 Cowlection-023589c75ae72ddc5ff75fa7235bce4d102b2ad1.zip |
Added new stats to `/moo stalkskyblock`
- new stats: skill average, slayer levels, pets
- also new alias: `/moo ss`
- new alias for `moo stalk`: `/moo s`
- also: stalking = bad!
Diffstat (limited to 'src/main/java/eu/olli/cowlection/data/DataHelper.java')
-rw-r--r-- | src/main/java/eu/olli/cowlection/data/DataHelper.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/main/java/eu/olli/cowlection/data/DataHelper.java b/src/main/java/eu/olli/cowlection/data/DataHelper.java index d6167b0..02911bb 100644 --- a/src/main/java/eu/olli/cowlection/data/DataHelper.java +++ b/src/main/java/eu/olli/cowlection/data/DataHelper.java @@ -1,7 +1,9 @@ package eu.olli.cowlection.data; import eu.olli.cowlection.util.Utils; +import net.minecraft.util.EnumChatFormatting; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -9,6 +11,31 @@ public final class DataHelper { private DataHelper() { } + public enum SkyBlockRarity { + COMMON(EnumChatFormatting.WHITE), + UNCOMMON(EnumChatFormatting.GREEN), + RARE(EnumChatFormatting.BLUE), + EPIC(EnumChatFormatting.DARK_PURPLE), + LEGENDARY(EnumChatFormatting.GOLD), + MYTHIC(EnumChatFormatting.LIGHT_PURPLE), + SPECIAL(EnumChatFormatting.RED), + VERY_SPECIAL(EnumChatFormatting.RED); + + public final EnumChatFormatting rarityColor; + + SkyBlockRarity(EnumChatFormatting color) { + this.rarityColor = color; + } + + public static SkyBlockRarity[] getPetRarities() { + return Arrays.stream(values(), 0, 5).toArray(SkyBlockRarity[]::new); + } + + public EnumChatFormatting getColor() { + return rarityColor; + } + } + // TODO replace with api request: https://github.com/HypixelDev/PublicAPI/blob/master/Documentation/misc/GameType.md public enum GameType { QUAKECRAFT("Quakecraft"), |