From 023589c75ae72ddc5ff75fa7235bce4d102b2ad1 Mon Sep 17 00:00:00 2001 From: Cow Date: Mon, 27 Jul 2020 23:50:02 +0200 Subject: 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! --- .../java/eu/olli/cowlection/data/DataHelper.java | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'src/main/java/eu/olli/cowlection/data/DataHelper.java') 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"), -- cgit