aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/overlay/GenericOverlays.java
diff options
context:
space:
mode:
authorLorenz <ESs95s3P5z8Pheb>2022-07-08 16:02:54 +0200
committerLorenz <ESs95s3P5z8Pheb>2022-07-08 16:02:54 +0200
commit9e08dbf2baa9819abd281ad285df7462c99491e2 (patch)
tree6e874e1c5b74a522d6acca08dd6b64c808ddbbbe /src/main/java/com/thatgravyboat/skyblockhud/overlay/GenericOverlays.java
parent1e268208cd700b379952d1718dca66fa4aad305c (diff)
downloadskyhanni-9e08dbf2baa9819abd281ad285df7462c99491e2.tar.gz
skyhanni-9e08dbf2baa9819abd281ad285df7462c99491e2.tar.bz2
skyhanni-9e08dbf2baa9819abd281ad285df7462c99491e2.zip
remove old stuff
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/overlay/GenericOverlays.java')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/overlay/GenericOverlays.java84
1 files changed, 42 insertions, 42 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/overlay/GenericOverlays.java b/src/main/java/com/thatgravyboat/skyblockhud/overlay/GenericOverlays.java
index 4986e2fb0..db773024a 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/overlay/GenericOverlays.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/overlay/GenericOverlays.java
@@ -1,42 +1,42 @@
-package com.thatgravyboat.skyblockhud.overlay;
-
-import at.lorenz.mod.LorenzMod;
-import com.thatgravyboat.skyblockhud.core.util.render.RenderUtils;
-import com.thatgravyboat.skyblockhud.textures.Textures;
-import java.awt.*;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.Gui;
-import net.minecraft.client.renderer.GlStateManager;
-
-public class GenericOverlays extends Gui {
-
- public static void drawLargeBar(Minecraft mc, int x, int y, float percentage, float max, int fullColor, int loadingColor, int barStyle) {
- if (LorenzMod.hasSkyblockScoreboard()) {
- mc.renderEngine.bindTexture(Textures.texture.bars);
- Color color = new Color(percentage == max ? fullColor : loadingColor);
-
- RenderUtils.drawTexturedModalRect(x, y, 0, 0, 182, 5);
- GlStateManager.color(color.getRed() / 255f, color.getGreen() / 255f, color.getBlue() / 255f, color.getAlpha() / 255f);
- RenderUtils.drawTexturedModalRect(x, y, 0, 30, 182, 5);
- RenderUtils.drawTexturedModalRect(x, y, 0, 5, (int) (182 * percentage), 5);
- if (barStyle != 0) {
- RenderUtils.drawTexturedModalRect(x, y, 0, 5 + (barStyle * 5), 182, 5);
- }
- }
- }
-
- public static void drawSmallBar(Minecraft mc, int x, int y, double percentage, double max, int fullColor, int loadingColor, int barStyle) {
- if (LorenzMod.hasSkyblockScoreboard()) {
- mc.renderEngine.bindTexture(Textures.texture.bars);
- Color color = new Color(percentage == max ? fullColor : loadingColor);
- GlStateManager.enableBlend();
- RenderUtils.drawTexturedModalRect(x, y, 0, 35, 62, 5);
- GlStateManager.color(color.getRed() / 255f, color.getGreen() / 255f, color.getBlue() / 255f, color.getAlpha() / 255f);
- RenderUtils.drawTexturedModalRect(x, y, 0, 65, 62, 5);
- RenderUtils.drawTexturedModalRect(x, y, 0, 40, (int) (62 * percentage), 5);
- if (barStyle != 0) {
- RenderUtils.drawTexturedModalRect(x, y, 0, 45 + (barStyle * 5), 62, 5);
- }
- }
- }
-}
+//package com.thatgravyboat.skyblockhud.overlay;
+//
+//import at.lorenz.mod.LorenzMod;
+//import com.thatgravyboat.skyblockhud.core.util.render.RenderUtils;
+//import com.thatgravyboat.skyblockhud.textures.Textures;
+//import java.awt.*;
+//import net.minecraft.client.Minecraft;
+//import net.minecraft.client.gui.Gui;
+//import net.minecraft.client.renderer.GlStateManager;
+//
+//public class GenericOverlays extends Gui {
+//
+// public static void drawLargeBar(Minecraft mc, int x, int y, float percentage, float max, int fullColor, int loadingColor, int barStyle) {
+// if (LorenzMod.hasSkyblockScoreboard()) {
+// mc.renderEngine.bindTexture(Textures.texture.bars);
+// Color color = new Color(percentage == max ? fullColor : loadingColor);
+//
+// RenderUtils.drawTexturedModalRect(x, y, 0, 0, 182, 5);
+// GlStateManager.color(color.getRed() / 255f, color.getGreen() / 255f, color.getBlue() / 255f, color.getAlpha() / 255f);
+// RenderUtils.drawTexturedModalRect(x, y, 0, 30, 182, 5);
+// RenderUtils.drawTexturedModalRect(x, y, 0, 5, (int) (182 * percentage), 5);
+// if (barStyle != 0) {
+// RenderUtils.drawTexturedModalRect(x, y, 0, 5 + (barStyle * 5), 182, 5);
+// }
+// }
+// }
+//
+// public static void drawSmallBar(Minecraft mc, int x, int y, double percentage, double max, int fullColor, int loadingColor, int barStyle) {
+// if (LorenzMod.hasSkyblockScoreboard()) {
+// mc.renderEngine.bindTexture(Textures.texture.bars);
+// Color color = new Color(percentage == max ? fullColor : loadingColor);
+// GlStateManager.enableBlend();
+// RenderUtils.drawTexturedModalRect(x, y, 0, 35, 62, 5);
+// GlStateManager.color(color.getRed() / 255f, color.getGreen() / 255f, color.getBlue() / 255f, color.getAlpha() / 255f);
+// RenderUtils.drawTexturedModalRect(x, y, 0, 65, 62, 5);
+// RenderUtils.drawTexturedModalRect(x, y, 0, 40, (int) (62 * percentage), 5);
+// if (barStyle != 0) {
+// RenderUtils.drawTexturedModalRect(x, y, 0, 45 + (barStyle * 5), 62, 5);
+// }
+// }
+// }
+//}