From f197b517e5ced58eee13b3f9aef89156575d0540 Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Sun, 5 Nov 2023 00:13:36 +1100 Subject: Feature: Sacks page in pv (#891) * sacks in pv * fix formatting * a bit more formatting * change location to make more sense * suggested changes * change colour * add coloured tooltips * remove some more magic numbers --- src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java b/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java index f879631e..6d44e4b7 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java @@ -1171,6 +1171,10 @@ public class Utils { drawStringCentered(str, Minecraft.getMinecraft().fontRendererObj, x, y, shadow, colour); } + public static void drawStringCentered(String str, int x, int y, boolean shadow, int colour) { + drawStringCentered(str, Minecraft.getMinecraft().fontRendererObj, x, y, shadow, colour); + } + @Deprecated public static void drawStringCentered(String str, FontRenderer fr, float x, float y, boolean shadow, int colour) { int strLen = fr.getStringWidth(str); -- cgit