aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/io')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java1427
1 files changed, 544 insertions, 883 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
index 7a1d9876..02822ae6 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
@@ -56,6 +56,7 @@ import java.util.*;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;
+import java.util.function.Supplier;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@@ -2943,910 +2944,570 @@ public class GuiProfileViewer extends GuiScreen {
//Pain
//if (miningSpeed == 0) {
- boolean miningSpeedunlocked = (miningSpeed > 0);
- List<String> miningSpeedTooltip = null;
- GlStateManager.color(1, 1, 1, 1);
- GlStateManager.disableLighting();
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(new ItemStack((miningSpeedunlocked ? Items.emerald : Items.coal)), (int) (guiLeft + xStart + 255), (int) (guiTop + yStartTop + 138));
- GlStateManager.enableLighting();
- if (mouseX >= guiLeft + xStart + 255 && mouseX < guiLeft + xStart + 271) {
- if (mouseY >= guiTop + yStartTop + 138 && mouseY <= guiTop + yStartTop + 154) {
- miningSpeedTooltip = Lists.newArrayList(
- (miningSpeedunlocked ? EnumChatFormatting.GREEN : EnumChatFormatting.RED) + "Mining Speed",
+ renderHotmPerk(
+ miningSpeed,
+ (int) (guiLeft + xStart + 255),
+ (int) (guiTop + yStartTop + 138),
+ mouseX,
+ mouseY,
+ () -> Lists.newArrayList(
+ "Mining Speed",
EnumChatFormatting.GRAY + "Level " + miningSpeed + EnumChatFormatting.DARK_GRAY + "/50",
"",
EnumChatFormatting.GRAY + "Grants " + EnumChatFormatting.GREEN + "+" + miningSpeedStat + EnumChatFormatting.GOLD + " ⸕ Mining",
EnumChatFormatting.GOLD + "Speed" + EnumChatFormatting.GRAY + "."
- );
- Utils.drawHoveringText(miningSpeedTooltip, mouseX, mouseY, width, height, -1, fr);
- miningSpeedTooltip = null;
- }
- }
- boolean miningFortuneunlocked = (miningFortune > 0);
- List<String> miningFortuneTooltip = null;
- GlStateManager.color(1, 1, 1, 1);
- GlStateManager.disableLighting();
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(new ItemStack((miningFortuneunlocked ? Items.emerald : Items.coal)), (int) (guiLeft + xStart + 255), (int) (guiTop + yStartTop + 114));
- GlStateManager.enableLighting();
- if (mouseX >= guiLeft + xStart + 255 && mouseX < guiLeft + xStart + 271) {
- if (mouseY >= guiTop + yStartTop + 114 && mouseY <= guiTop + yStartTop + 130) {
- miningFortuneTooltip = Lists.newArrayList(
- (miningSpeedunlocked ? EnumChatFormatting.GREEN : EnumChatFormatting.RED) + "Mining Fortune",
+ ),
+ 50
+ );
+
+ renderHotmPerk(
+ miningFortune,
+ (int) (guiLeft + xStart + 255), (int) (guiTop + yStartTop + 114),
+ mouseX, mouseY,
+ () -> Lists.newArrayList(
+ "Mining Fortune",
EnumChatFormatting.GRAY + "Level " + miningFortune + EnumChatFormatting.DARK_GRAY + "/50",
"",
EnumChatFormatting.GRAY + "Grants " + EnumChatFormatting.GREEN + "+" + miningFortuneStat + EnumChatFormatting.GOLD + " ☘ Mining",
EnumChatFormatting.GOLD + "Fortune" + EnumChatFormatting.GRAY + "."
- );
- Utils.drawHoveringText(miningFortuneTooltip, mouseX, mouseY, width, height, -1, fr);
- miningFortuneTooltip = null;
- }
- }
- boolean tittyInsaneunlocked = (tittyInsane > 0);
- List<String> tittyInsaneTooltip = null;
- GlStateManager.color(1, 1, 1, 1);
- GlStateManager.disableLighting();
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(new ItemStack((tittyInsaneunlocked ? Items.emerald : Items.coal)), (int) (guiLeft + xStart + 231), (int) (guiTop + yStartTop + 114));
- GlStateManager.enableLighting();
- if (mouseX >= guiLeft + xStart + 231 && mouseX < guiLeft + xStart + 247) {
- if (mouseY >= guiTop + yStartTop + 114 && mouseY <= guiTop + yStartTop + 130) {
- tittyInsaneTooltip = Lists.newArrayList(
- (tittyInsaneunlocked ? EnumChatFormatting.GREEN : EnumChatFormatting.RED) + "Titanium Insanium",
+ ),
+ 50
+ );
+
+ renderHotmPerk(
+ tittyInsane,
+ (int) (guiLeft + xStart + 231), (int) (guiTop + yStartTop + 114),
+ mouseX, mouseY,
+ () -> Lists.newArrayList(
+ "Titanium Insanium",
EnumChatFormatting.GRAY + "Level " + tittyInsane + EnumChatFormatting.DARK_GRAY + "/50",
"",
EnumChatFormatting.GRAY + "When mining Mithril Ore, you",
EnumChatFormatting.GRAY + "have a " + EnumChatFormatting.GREEN + tittyInsaneStat + "% " + EnumChatFormatting.GRAY + "chance to",
EnumChatFormatting.GRAY + "convert the block into Titanium",
EnumChatFormatting.GRAY + "Ore."
- );
- Utils.drawHoveringText(tittyInsaneTooltip, mouseX, mouseY, width, height, -1, fr);
- tittyInsaneTooltip = null;
- }
- }
- if (miningSpeedBoost == 0) {
- if (potm == 0) {
- List<String> mngspeedBoostTooltip = null;
- GlStateManager.color(1, 1, 1, 1);
- GlStateManager.disableLighting();
- RenderHelper.enableGUIStandardItemLighting();
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(new ItemStack(Blocks.coal_block), (int) (guiLeft + xStart + 207), (int) (guiTop + yStartTop + 114));
- GlStateManager.enableLighting();
- if (mouseX >= guiLeft + xStart + 207 && mouseX < guiLeft + xStart + 223) {
- if (mouseY >= guiTop + yStartTop + 114 && mouseY <= guiTop + yStartTop + 130) {
- mngspeedBoostTooltip = Lists.newArrayList(
- EnumChatFormatting.RED + "Mining Speed Boost",
- "",
- EnumChatFormatting.GRAY + "Pickaxe Ability: Mining Speed Boost",
- EnumChatFormatting.GRAY + "Grants " + EnumChatFormatting.GREEN + "200% " + EnumChatFormatting.GOLD + "⸕ Mining",
- EnumChatFormatting.GOLD + "Speed " + EnumChatFormatting.GRAY + "for " + EnumChatFormatting.GREEN + "15s" + EnumChatFormatting.GRAY,
- EnumChatFormatting.DARK_GRAY + "Cooldown: " + EnumChatFormatting.GREEN + "120s"
- );
- Utils.drawHoveringText(mngspeedBoostTooltip, mouseX, mouseY, width, height, -1, fr);
- mngspeedBoostTooltip = null;
- }
- }
- }
- if (potm > 0) {
- List<String> mngspeedBoostTooltip = null;
- GlStateManager.color(1, 1, 1, 1);
- GlStateManager.disableLighting();
- RenderHelper.enableGUIStandardItemLighting();
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(new ItemStack(Blocks.coal_block), (int) (guiLeft + xStart + 207), (int) (guiTop + yStartTop + 114));
- GlStateManager.enableLighting();
- if (mouseX >= guiLeft + xStart + 207 && mouseX < guiLeft + xStart + 223) {
- if (mouseY >= guiTop + yStartTop + 114 && mouseY <= guiTop + yStartTop + 130) {
- mngspeedBoostTooltip = Lists.newArrayList(
- EnumChatFormatting.RED + "Mining Speed Boost",
- "",
- EnumChatFormatting.GRAY + "Pickaxe Ability: Mining Speed Boost",
- EnumChatFormatting.GRAY + "Grants " + EnumChatFormatting.GREEN + "300% " + EnumChatFormatting.GOLD + "⸕ Mining",
- EnumChatFormatting.GOLD + "Speed " + EnumChatFormatting.GRAY + "for " + EnumChatFormatting.GREEN + "20s" + EnumChatFormatting.GRAY,
- EnumChatFormatting.DARK_GRAY + "Cooldown: " + EnumChatFormatting.GREEN + "120s"
- );
- Utils.drawHoveringText(mngspeedBoostTooltip, mouseX, mouseY, width, height, -1, fr);
- mngspeedBoostTooltip = null;
- }
- }
- }
- }
- if (miningSpeedBoost > 0) {
- if (potm == 0) {
- List<String> mngspeedBoostTooltip = null;
- GlStateManager.color(1, 1, 1, 1);
- GlStateManager.disableLighting();
- RenderHelper.enableGUIStandardItemLighting();
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(new ItemStack(Blocks.emerald_block), (int) (guiLeft + xStart + 207), (int) (guiTop + yStartTop + 114));
- GlStateManager.enableLighting();
- if (mouseX >= guiLeft + xStart + 207 && mouseX < guiLeft + xStart + 223) {
- if (mouseY >= guiTop + yStartTop + 114 && mouseY <= guiTop + yStartTop + 130) {
- mngspeedBoostTooltip = Lists.newArrayList(
- EnumChatFormatting.GREEN + "Mining Speed Boost",
- "",
- EnumChatFormatting.GRAY + "Pickaxe Ability: Mining Speed Boost",
- EnumChatFormatting.GRAY + "Grants " + EnumChatFormatting.GREEN + "200% " + EnumChatFormatting.GOLD + "⸕ Mining",
- EnumChatFormatting.GOLD + "Speed " + EnumChatFormatting.GRAY + "for " + EnumChatFormatting.GREEN + "15s" + EnumChatFormatting.GRAY,
- EnumChatFormatting.DARK_GRAY + "Cooldown: " + EnumChatFormatting.GREEN + "120s"
- );
- Utils.drawHoveringText(mngspeedBoostTooltip, mouseX, mouseY, width, height, -1, fr);
- mngspeedBoostTooltip = null;
- }
- }
- }
- if (potm > 0) {
- List<String> mngspeedBoostTooltip = null;
- GlStateManager.color(1, 1, 1, 1);
- GlStateManager.disableLighting();
- RenderHelper.enableGUIStandardItemLighting();
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(new ItemStack(Blocks.emerald_block), (int) (guiLeft + xStart + 207), (int) (guiTop + yStartTop + 114));
- GlStateManager.enableLighting();
- if (mouseX >= guiLeft + xStart + 207 && mouseX < guiLeft + xStart + 223) {
- if (mouseY >= guiTop + yStartTop + 114 && mouseY <= guiTop + yStartTop + 130) {
- mngspeedBoostTooltip = Lists.newArrayList(
- EnumChatFormatting.GREEN + "Mining Speed Boost",
- "",
- EnumChatFormatting.GRAY + "Pickaxe Ability: Mining Speed Boost",
- EnumChatFormatting.GRAY + "Grants " + EnumChatFormatting.GREEN + "300% " + EnumChatFormatting.GOLD + "⸕ Mining",
- EnumChatFormatting.GOLD + "Speed " + EnumChatFormatting.GRAY + "for " + EnumChatFormatting.GREEN + "20s" + EnumChatFormatting.GRAY,
- EnumChatFormatting.DARK_GRAY + "Cooldown: " + EnumChatFormatting.GREEN + "120s"
- );
- Utils.drawHoveringText(mngspeedBoostTooltip, mouseX, mouseY, width, height, -1, fr);
- mngspeedBoostTooltip = null;
- }
- }
- }
- }
- if (veinSeeker == 0) {
- List<String> mngspeedBoostTooltip = null;
- GlStateManager.color(1, 1, 1, 1);
- GlStateManager.disableLighting();
- RenderHelper.enableGUIStandardItemLighting();
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(new ItemStack(Blocks.coal_block), (int) (guiLeft + xStart + 183), (int) (guiTop + yStartTop + 18));
- GlStateManager.enableLighting();
- if (mouseX >= guiLeft + xStart + 183 && mouseX < guiLeft + xStart + 199) {
- if (mouseY >= guiTop + yStartTop + 18 && mouseY <= guiTop + yStartTop + 34) {
- mngspeedBoostTooltip = Lists.newArrayList(
- EnumChatFormatting.RED + "Vein Seeker",
- "",
- "§6Pickaxe Ability: Vein Seeker",
- "§7Points in the direction of the",
- "§7nearest vein and grants §a+§a3§7",
- "§7§6Mining Spread §7for §a14s§7§7.",
- "§8Cooldown: §a60s"
- );
- Utils.drawHoveringText(mngspeedBoostTooltip, mouseX, mouseY, width, height, -1, fr);
- mngspeedBoostTooltip = null;
- }
- }
- }
- if (veinSeeker > 0) {
- List<String> mngspeedBoostTooltip = null;
- GlStateManager.color(1, 1, 1, 1);
- GlStateManager.disableLighting();
- RenderHelper.enableGUIStandardItemLighting();
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(new ItemStack(Blocks.emerald_block), (int) (guiLeft + xStart + 183), (int) (guiTop + yStartTop + 18));
- GlStateManager.enableLighting();
- if (mouseX >= guiLeft + xStart + 183 && mouseX < guiLeft + xStart + 199) {
- if (mouseY >= guiTop + yStartTop + 18 && mouseY <= guiTop + yStartTop + 34) {
- mngspeedBoostTooltip = Lists.newArrayList(
- EnumChatFormatting.GREEN + "Vein Seeker",
- "",
- "§6Pickaxe Ability: Vein Seeker",
- "§7Points in the direction of the",
- "§7nearest vein and grants §a+§a3§7",
- "§7§6Mining Spread §7for §a14s§7§7.",
- "§8Cooldown: §a60s"
- );
- Utils.drawHoveringText(mngspeedBoostTooltip, mouseX, mouseY, width, height, -1, fr);
- mngspeedBoostTooltip = null;
- }
- }
- }
- boolean luckofcaveunlocked = (luckofcave > 0);
- List<String> luckofcaveTooltip = null;
- GlStateManager.color(1, 1, 1, 1);
- GlStateManager.disableLighting();
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(new ItemStack((luckofcaveunlocked ? Items.emerald : Items.coal)), (int) (guiLeft + xStart + 207), (int) (guiTop + yStartTop + 90));
- GlStateManager.enableLighting();
- if (mouseX >= guiLeft + xStart + 207 && mouseX < guiLeft + xStart + 223) {
- if (mouseY >= guiTop + yStartTop + 90 && mouseY <= guiTop + yStartTop + 106) {
- luckofcaveTooltip = Lists.newArrayList(
- (luckofcaveunlocked ? EnumChatFormatting.GREEN : EnumChatFormatting.RED) + "Luck of the Cave",
- "§7Level " + luckofcave + EnumChatFormatting.DARK_GRAY + "/45",
- "",
- "§7Increases the chance for you to",
- "§7trigger rare occurrences im",
- "§2Dwarven Mines by " + EnumChatFormatting.GREEN + luckofcaveStat + "%§7."
- );
- Utils.drawHoveringText(luckofcaveTooltip, mouseX, mouseY, width, height, -1, fr);
- luckofcaveTooltip = null;
- }
- }
- boolean dailyPowderunlocked = (dailyPowder > 0);
- List<String> dailyPowderTooltip = null;
- GlStateManager.color(1, 1, 1, 1);
- GlStateManager.disableLighting();
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(new ItemStack((dailyPowderunlocked ? Items.emerald : Items.coal)), (int) (guiLeft + xStart + 255), (int) (guiTop + yStartTop + 90));
- GlStateManager.enableLighting();
- if (mouseX >= guiLeft + xStart + 255 && mouseX < guiLeft + xStart + 271) {
- if (mouseY >= guiTop + yStartTop + 90 && mouseY <= guiTop + yStartTop + 106) {
- dailyPowderTooltip = Lists.newArrayList(
- (dailyPowderunlocked ? EnumChatFormatting.GREEN : EnumChatFormatting.RED) + "Daily Powder",
- EnumChatFormatting.GRAY + "Level " + dailyPowder + EnumChatFormatting.DARK_GRAY + "/100",
- "",
- EnumChatFormatting.GRAY + "Gains " + EnumChatFormatting.GREEN + dailyPowderStat + " Powder" + EnumChatFormatting.GRAY + " from the",
- EnumChatFormatting.GRAY + "first ore you mine every day.",
- EnumChatFormatting.GRAY + "Works for all Powder types."
- );
- Utils.drawHoveringText(dailyPowderTooltip, mouseX, mouseY, width, height, -1, fr);
- dailyPowderTooltip = null;
- }
- }
- boolean effMinerunlocked = (effMiner > 0);
- List<String> effMinerTooltip = null;
- GlStateManager.color(1, 1, 1, 1);
- GlStateManager.disableLighting();
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(new ItemStack((effMinerunlocked ? Items.emerald : Items.coal)), (int) (guiLeft + xStart + 255), (int) (guiTop + yStartTop + 66));
- GlStateManager.enableLighting();
- if (mouseX >= guiLeft + xStart + 255 && mouseX < guiLeft + xStart + 271) {
- if (mouseY >= guiTop + yStartTop + 66 && mouseY <= guiTop + yStartTop + 82) {
- effMinerTooltip = Lists.newArrayList(
- (effMinerunlocked ? EnumChatFormatting.GREEN : EnumChatFormatting.RED) + "Efficient Miner",
- EnumChatFormatting.GRAY + "Level " + effMiner + EnumChatFormatting.DARK_GRAY + "/100",
- "",
- EnumChatFormatting.GRAY + "When mining ores, you have a",
- EnumChatFormatting.GREEN + "" + effMinerStat + "%" + EnumChatFormatting.GRAY + " chance to mine " + EnumChatFormatting.GREEN + Math.round(effMinerStat2),
- EnumChatFormatting.GRAY + "adjacent ores."
- );
- Utils.drawHoveringText(effMinerTooltip, mouseX, mouseY, width, height, -1, fr);
- effMinerTooltip = null;
- }
- }
- //AAAAAAAAA
- //AaaaaaaAaaAaA
- //AAAAAA
- if (potm == 5) {
- List<String> potmTooltip = null;
- GlStateManager.color(1, 1, 1, 1);
- GlStateManager.disableLighting();
- RenderHelper.enableGUIStandardItemLighting();
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(new ItemStack(Blocks.redstone_block), (int) (guiLeft + xStart + 255), (int) (guiTop + yStartTop + 42));
- GlStateManager.enableLighting();
- //Minecraft.getMinecraft().getTextureManager().bindTexture(potmUnlocked);
- //Utils.drawTexturedRect(guiLeft + xStart + 255, guiTop + yStartTop + 42, 16, 16, GL11.GL_NEAREST);
- if (mouseX >= guiLeft + xStart + 255 && mouseX < guiLeft + xStart + 271) {
- if (mouseY >= guiTop + yStartTop + 42 && mouseY <= guiTop + yStartTop + 58) {
- potmTooltip = Lists.newArrayList(
- EnumChatFormatting.GREEN + "Peak of the Mountain",
- EnumChatFormatting.GRAY + "Level " + potm + EnumChatFormatting.DARK_GRAY + "/5",
- "",
- "§7§8+§c1 Pickaxe Ability Level",
- "§7§8+§51 Token of the Mountain",
- "§7§8+§a1 Forge Slot",
- "§7§8+§a1 Commission Slot",
- "§7§8+§21 Mithril Powder §7when",
- "§7mining §fMithril",
- "§7§8+§51 Token of the Mountain"
- );
- Utils.drawHoveringText(potmTooltip, mouseX, mouseY, width, height, -1, fr);
- potmTooltip = null;
- }
- }
- }
- if (potm == 4) {
- List<String> potmTooltip = null;
- GlStateManager.color(1, 1, 1, 1);
- GlStateManager.disableLighting();
- RenderHelper.enableGUIStandardItemLighting();
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(new ItemStack(Blocks.redstone_block), (int) (guiLeft + xStart + 255), (int) (guiTop + yStartTop + 42));
- GlStateManager.enableLighting();
- if (mouseX >= guiLeft + xStart + 255 && mouseX < guiLeft + xStart + 271) {
- if (mouseY >= guiTop + yStartTop + 42 && mouseY <= guiTop + yStartTop + 58) {
- potmTooltip = Lists.newArrayList(
- EnumChatFormatting.YELLOW + "Peak of the Mountain",
- EnumChatFormatting.GRAY + "Level " + potm + EnumChatFormatting.DARK_GRAY + "/5",
- "",
- "§7§8+§c1 Pickaxe Ability Level",
- "§7§8+§51 Token of the Mountain",
- "§7§8+§a1 Forge Slot",
- "§7§8+§a1 Commission Slot",
- "§7§8+§21 Mithril Powder §7when",
- "§7mining §fMithril"
- );
- Utils.drawHoveringText(potmTooltip, mouseX, mouseY, width, height, -1, fr);
- potmTooltip = null;
- }
- }
- }
- if (potm == 3) {
- List<String> potmTooltip = null;
- GlStateManager.color(1, 1, 1, 1);
- GlStateManager.disableLighting();
- RenderHelper.enableGUIStandardItemLighting();
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(new ItemStack(Blocks.redstone_block), (int) (guiLeft + xStart + 255), (int) (guiTop + yStartTop + 42));
- GlStateManager.enableLighting();
- if (mouseX >= guiLeft + xStart + 255 && mouseX < guiLeft + xStart + 271) {
- if (mouseY >= guiTop + yStartTop + 42 && mouseY <= guiTop + yStartTop + 58) {
- potmTooltip = Lists.newArrayList(
- EnumChatFormatting.YELLOW + "Peak of the Mountain",
- EnumChatFormatting.GRAY + "Level " + potm + EnumChatFormatting.DARK_GRAY + "/5",
- "",
- "§7§8+§c1 Pickaxe Ability Level",
- "§7§8+§51 Token of the Mountain",
- "§7§8+§a1 Forge Slot",
- "§7§8+§a1 Commission Slot"
- );
- Utils.drawHoveringText(potmTooltip, mouseX, mouseY, width, height, -1, fr);
- potmTooltip = null;
- }
- }
- }
- if (potm == 2) {
- List<String> potmTooltip = null;
- GlStateManager.color(1, 1, 1, 1);
- GlStateManager.disableLighting();
- RenderHelper.enableGUIStandardItemLighting();
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(new ItemStack(Blocks.redstone_block), (int) (guiLeft + xStart + 255), (int) (guiTop + yStartTop + 42));
- GlStateManager.enableLighting();
- if (mouseX >= guiLeft + xStart + 255 && mouseX < guiLeft + xStart + 271) {
- if (mouseY >= guiTop + yStartTop + 42 && mouseY <= guiTop + yStartTop + 58) {
- potmTooltip = Lists.newArrayList(
- EnumChatFormatting.YELLOW + "Peak of the Mountain",
- EnumChatFormatting.GRAY + "Level " + potm + EnumChatFormatting.DARK_GRAY + "/5",
- "",
- "§7§8+§c1 Pickaxe Ability Level",
- "§7§8+§51 Token of the Mountain",
- "§7§8+§a1 Forge Slot"
- );
- Utils.drawHoveringText(potmTooltip, mouseX, mouseY, width, height, -1, fr);
- potmTooltip = null;
- }
- }
- }
- if (potm == 1) {
- List<String> potmTooltip = null;
- GlStateManager.color(1, 1, 1, 1);
- GlStateManager.disableLighting();
- RenderHelper.enableGUIStandardItemLighting();
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(new ItemStack(Blocks.redstone_block), (int) (guiLeft + xStart + 255), (int) (guiTop + yStartTop + 42));
- GlStateManager.enableLighting();
- if (mouseX >= guiLeft + xStart + 255 && mouseX < guiLeft + xStart + 271) {
- if (mouseY >= guiTop + yStartTop + 42 && mouseY <= guiTop + yStartTop + 58) {
- potmTooltip = Lists.newArrayList(
- EnumChatFormatting.YELLOW + "Peak of the Mountain",
- EnumChatFormatting.GRAY + "Level " + potm + EnumChatFormatting.DARK_GRAY + "/5",
- "",
- "§7§8+§c1 Pickaxe Ability Level",
- "§7§8+§51 Token of the Mountain"
- );
- Utils.drawHoveringText(potmTooltip, mouseX, mouseY, width, height, -1, fr);
- potmTooltip = null;
- }
- }
- }
- if (potm == 0) {
- List<String> potmTooltip = null;
- GlStateManager.color(1, 1, 1, 1);
- GlStateManager.disableLighting();
- RenderHelper.enableGUIStandardItemLighting();
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(new ItemStack(Blocks.bedrock), (int) (guiLeft + xStart + 255), (int) (guiTop + yStartTop + 42));
- GlStateManager.enableLighting();
- if (mouseX >= guiLeft + xStart + 255 && mouseX < guiLeft + xStart + 271) {
- if (mouseY >= guiTop + yStartTop + 42 && mouseY <= guiTop + yStartTop + 58) {
- potmTooltip = Lists.newArrayList(
- EnumChatFormatting.RED + "Peak of the Mountain",
- EnumChatFormatting.GRAY + "Level " + potm + EnumChatFormatting.DARK_GRAY + "/5"
- );
- Utils.drawHoveringText(potmTooltip, mouseX, mouseY, width, height, -1, fr);
- potmTooltip = null;
- }
- }
- }
- boolean moleunlocked = (mole > 0);
- List<String> moleTooltip = null;
- GlStateManager.color(1, 1, 1, 1);
- GlStateManager.disableLighting();
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(new ItemStack((moleunlocked ? Items.emerald : Items.coal)), (int) (guiLeft + xStart + 255), (int) (guiTop + yStartTop + 18));
- GlStateManager.enableLighting();
- if (mouseX >= guiLeft + xStart + 255 && mouseX < guiLeft + xStart + 271) {
- if (mouseY >= guiTop + yStartTop + 18 && mouseY <= guiTop + yStartTop + 34) {
- moleTooltip = Lists.newArrayList(
- (moleunlocked ? EnumChatFormatting.GREEN : EnumChatFormatting.RED) + "Mole",
- EnumChatFormatting.GRAY + "Level " + mole + EnumChatFormatting.DARK_GRAY + "/190",
- "",
- EnumChatFormatting.GRAY + "When mining hard stone, you have",
- EnumChatFormatting.GRAY + "a " + EnumChatFormatting.GREEN + output + "% " + EnumChatFormatting.GRAY + "chance to mine " + EnumChatFormatting.GREEN + "",
- EnumChatFormatting.GREEN + "" + Math.round(moleStat) + EnumChatFormatting.GRAY + " adjacent hard stone blocks."
- );
- Utils.drawHoveringText(moleTooltip, mouseX, mouseY, width, height, -1, fr);
- moleTooltip = null;
- }
- }
- boolean powderBuffunlocked = (powderBuff > 0);
- List<String> powderBuffTooltip = null;
- GlStateManager.color(1, 1, 1, 1);
- GlStateManager.disableLighting();
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(new ItemStack((powderBuffunlocked ? Items.emerald : Items.coal)), (int) (guiLeft + xStart + 255), (int) (guiTop + yStartTop - 6));
- GlStateManager.enableLighting();
- if (mouseX >= guiLeft + xStart + 255 && mouseX < guiLeft + xStart + 271) {
- if (mouseY >= guiTop + yStartTop - 6 && mouseY <= guiTop + yStartTop + 10) {
- powderBuffTooltip = Lists.newArrayList(
- (powderBuffunlocked ? EnumChatFormatting.GREEN : EnumChatFormatting.RED) + "Powder Buff",
- EnumChatFormatting.GRAY + "Level " + powderBuff + EnumChatFormatting.DARK_GRAY + "/50",
- "",
- EnumChatFormatting.GRAY + "Gain " + EnumChatFormatting.GREEN + powderBuff + "% " + EnumChatFormatting.GRAY + "more Mithril",
- EnumChatFormatting.GRAY + "Powder and Gemstone Powder§7."
- );
- Utils.drawHoveringText(powderBuffTooltip, mouseX, mouseY, width, height, -1, fr);
- powderBuffTooltip = null;
- }
- }
- boolean skyMallunlocked = (skyMall > 0);
- List<String> skyMallTooltip = null;
- GlStateManager.color(1, 1, 1, 1);
- GlStateManager.disableLighting();
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(new ItemStack((skyMallunlocked ? Items.diamond : Items.coal)), (int) (guiLeft + xStart + 183), (int) (guiTop + yStartTop + 66));
- GlStateManager.enableLighting();
- if (mouseX >= guiLeft + xStart + 183 && mouseX < guiLeft + xStart + 199) {
- if (mouseY >= guiTop + yStartTop + 66 && mouseY <= guiTop + yStartTop + 82) {
- skyMallTooltip = Lists.newArrayList(
- (skyMallunlocked ? EnumChatFormatting.GREEN : EnumChatFormatting.RED) + "Sky Mall",
- "§7Every SkyBlock day, you receive",
- "§7a random buff in the §2Dwarven",
- "§2Mines§7.",
- "",
- "§7Possible Buffs",
- "§8 ■ §7Gain §a+100 §6⸕ Mining Speed.",
- "§8 ■ §7Gain §a+50 §6☘ Mining Fortune.",
- "§8 ■ §7Gain §a+15% §7chance to gain",
- " §7extra Powder while mining.",
- "§8 ■ §7Reduce Pickaxe Ability cooldown",
- " §7by §a20%", "§8 ■ §7§a10x §7chance to find Goblins",
- " §7while mining.",
- "§8 ■ §7Gain §a5x §9Titanium §7drops."
- );
- Utils.drawHoveringText(skyMallTooltip, mouseX, mouseY, width, height, -1, fr);
- skyMallTooltip = null;
- }
- }
- boolean goblinKillerunlocked = (goblinKiller > 0);
- List<String> goblinKillerTooltip = null;
- GlStateManager.color(1, 1, 1, 1);
- GlStateManager.disableLighting();
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(new ItemStack((goblinKillerunlocked ? Items.diamond : Items.coal)), (int) (guiLeft + xStart + 207), (int) (guiTop + yStartTop + 42));
- GlStateManager.enableLighting();
- if (mouseX >= guiLeft + xStart + 207 && mouseX < guiLeft + xStart + 223) {
- if (mouseY >= guiTop + yStartTop + 42 && mouseY <= guiTop + yStartTop + 58) {
- goblinKillerTooltip = Lists.newArrayList(
- (goblinKillerunlocked ? EnumChatFormatting.GREEN : EnumChatFormatting.RED) + "Goblin Killer",
- "§7Killing a §6Golden Goblin",
- "§6§7gives §2200 §7extra §2Mithril",
- "§2Powder§7, while killing other",
- "§7Goblins gives some based on",
- "§7their wits."
- );
- Utils.drawHoveringText(goblinKillerTooltip, mouseX, mouseY, width, height, -1, fr);
- goblinKillerTooltip = null;
- }
- }
- boolean seasonMineunlocked = (seasonMine > 0);
- List<String> seasonMineTooltip = null;
- GlStateManager.color(1, 1, 1, 1);
- GlStateManager.disableLighting();
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(new ItemStack((seasonMineunlocked ? Items.emerald : Items.coal)), (int) (guiLeft + xStart + 231), (int) (guiTop + yStartTop + 66));
- GlStateManager.enableLighting();
- if (mouseX >= guiLeft + xStart + 231 && mouseX < guiLeft + xStart + 247) {
- if (mouseY >= guiTop + yStartTop + 66 && mouseY <= guiTop + yStartTop + 82) {
- seasonMineTooltip = Lists.newArrayList(
- (seasonMineunlocked ? EnumChatFormatting.GREEN : EnumChatFormatting.RED) + "Seasoned Mineman",
- "§7Level " + seasonMine + "§8/100",
- "",
- "§7Increases your Mining",
- "§7experience gain by " + EnumChatFormatting.GREEN + seasonMineStat + "%§7."
- );
- Utils.drawHoveringText(seasonMineTooltip, mouseX, mouseY, width, height, -1, fr);
- seasonMineTooltip = null;
- }
- }
- boolean madMiningunlocked = (madMining > 0);
- List<String> madMiningTooltip = null;
- GlStateManager.color(1, 1, 1, 1);
- GlStateManager.disableLighting();
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(new ItemStack((madMiningunlocked ? Items.diamond : Items.coal)), (int) (guiLeft + xStart + 207), (int) (guiTop + yStartTop + 66));
- GlStateManager.enableLighting();
- if (mouseX >= guiLeft + xStart + 207 && mouseX < guiLeft + xStart + 223) {
- if (mouseY >= guiTop + yStartTop + 66 && mouseY <= guiTop + yStartTop + 82) {
- madMiningTooltip = Lists.newArrayList(
- (madMiningunlocked ? EnumChatFormatting.GREEN : EnumChatFormatting.RED) + "Mining Madness",
- "§7Grants §a+50 §6⸕ Mining Speed",
- "§7and §6☘ Mining Fortune§7."
- );
- Utils.drawHoveringText(madMiningTooltip, mouseX, mouseY, width, height, -1, fr);
- madMiningTooltip = null;
- }
- }
- boolean lonesomeMinerunlocked = (lonesomeMiner > 0);
- List<String> lonesomeMinerTooltip = null;
- GlStateManager.color(1, 1, 1, 1);
- GlStateManager.disableLighting();
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(new ItemStack((lonesomeMinerunlocked ? Items.emerald : Items.coal)), (int) (guiLeft + xStart + 207), (int) (guiTop + yStartTop + 18));
- GlStateManager.enableLighting();
- if (mouseX >= guiLeft + xStart + 207 && mouseX < guiLeft + xStart + 223) {
- if (mouseY >= guiTop + yStartTop + 18 && mouseY <= guiTop + yStartTop + 34) {
- lonesomeMinerTooltip = Lists.newArrayList(
- (lonesomeMinerunlocked ? EnumChatFormatting.GREEN : EnumChatFormatting.RED) + "Lonesome Miner",
- "§7Level " + lonesomeMiner + EnumChatFormatting.DARK_GRAY + "/45",
- "",
- "§7Increases §c❁ Strength, §9☣ Crit",
- "§9Chance, §9☠ Crit Damage, §a❈",
- "§aDefense, and §c❤ Health",
- "§c§7statistics gain by " + EnumChatFormatting.GREEN + lonesomeMinerStat + "%§7",
- "§7while in the Crystal Hollows."
- );
- Utils.drawHoveringText(lonesomeMinerTooltip, mouseX, mouseY, width, height, -1, fr);
- lonesomeMinerTooltip = null;
- }
- }
- boolean professionalunlocked = (professional > 0);
- List<String> professionalTooltip = null;
- GlStateManager.color(1, 1, 1, 1);
- GlStateManager.disableLighting();
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(new ItemStack((professionalunlocked ? Items.emerald : Items.coal)), (int) (guiLeft + xStart + 231), (int) (guiTop + yStartTop + 18));
- GlStateManager.enableLighting();
- if (mouseX >= guiLeft + xStart + 231 && mouseX < guiLeft + xStart + 247) {
- if (mouseY >= guiTop + yStartTop + 18 && mouseY <= guiTop + yStartTop + 34) {
- professionalTooltip = Lists.newArrayList(
- (professionalunlocked ? EnumChatFormatting.GREEN : EnumChatFormatting.RED) + "Professional",
- "§7Level " + professional + EnumChatFormatting.DARK_GRAY + "/140",
- "",
- "§7Gain §a+" + professionalStat + "§6 ⸕ Mining",
- "§6Speed§7 when mining Gemstones."
- );
- Utils.drawHoveringText(professionalTooltip, mouseX, mouseY, width, height, -1, fr);
- professionalTooltip = null;
- }
- }
- boolean miningSpeed2unlocked = (miningSpeed2 > 0);
- List<String> miningSpeed2Tooltip = null;
- GlStateManager.color(1, 1, 1, 1);
- GlStateManager.disableLighting();
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(new ItemStack((miningSpeed2unlocked ? Items.emerald : Items.coal)), (int) (guiLeft + xStart + 207), (int) (guiTop + yStartTop - 6));
- GlStateManager.enableLighting();
- if (mouseX >= guiLeft + xStart + 207 && mouseX < guiLeft + xStart + 223) {
- if (mouseY >= guiTop + yStartTop - 6 && mouseY <= guiTop + yStartTop + 10) {
- miningSpeed2Tooltip = Lists.newArrayList(
- (miningSpeed2unlocked ? EnumChatFormatting.GREEN : EnumChatFormatting.RED) + "Mining Speed 2",
- "§7Level " + miningSpeed2 + EnumChatFormatting.DARK_GRAY + "/50",
- "",
- "§7Grants " + EnumChatFormatting.GREEN + "+" + miningSpeed2Stat + EnumChatFormatting.GOLD + " ⸕ Mining",
- "§6Speed§7."
- );
- Utils.drawHoveringText(miningSpeed2Tooltip, mouseX, mous