aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2023-11-05 00:13:36 +1100
committerGitHub <noreply@github.com>2023-11-04 14:13:36 +0100
commitf197b517e5ced58eee13b3f9aef89156575d0540 (patch)
treeb88c8e7b74dfd235519d9f38469b6633575c0689 /src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java
parentdf476f63ccde2ff0c17d048e582ffa75e0d66088 (diff)
downloadnotenoughupdates-f197b517e5ced58eee13b3f9aef89156575d0540.tar.gz
notenoughupdates-f197b517e5ced58eee13b3f9aef89156575d0540.tar.bz2
notenoughupdates-f197b517e5ced58eee13b3f9aef89156575d0540.zip
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
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java4
1 files changed, 4 insertions, 0 deletions
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);