aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-05-02 20:21:50 +1000
committerGitHub <noreply@github.com>2024-05-02 12:21:50 +0200
commit51cc5a1516c1c31589de1018f194068277219998 (patch)
tree04c2147071f54fda666e4a823589ba2dd699a41e /src/main/java/at/hannibal2/skyhanni/utils
parent0ce81ffab719984f9f0a86a4e443bbb318953402 (diff)
downloadskyhanni-51cc5a1516c1c31589de1018f194068277219998.tar.gz
skyhanni-51cc5a1516c1c31589de1018f194068277219998.tar.bz2
skyhanni-51cc5a1516c1c31589de1018f194068277219998.zip
Improvement: Show stars on time tower and coach jackrabbit (#1641)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
index 4f62c62bd..f96d03da2 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
@@ -5,6 +5,7 @@ import at.hannibal2.skyhanni.data.GuiEditManager
import at.hannibal2.skyhanni.data.GuiEditManager.Companion.getAbsX
import at.hannibal2.skyhanni.data.GuiEditManager.Companion.getAbsY
import at.hannibal2.skyhanni.data.GuiEditManager.Companion.getDummySize
+import at.hannibal2.skyhanni.events.GuiContainerEvent
import at.hannibal2.skyhanni.events.GuiRenderItemEvent
import at.hannibal2.skyhanni.events.LorenzRenderWorldEvent
import at.hannibal2.skyhanni.events.RenderGuiItemOverlayEvent
@@ -1451,6 +1452,24 @@ object RenderUtils {
text: String,
scale: Float,
) {
+ RenderUtils.drawSlotText(xPos, yPos, text, scale)
+ }
+
+ fun GuiContainerEvent.ForegroundDrawnEvent.drawSlotText(
+ xPos: Int,
+ yPos: Int,
+ text: String,
+ scale: Float,
+ ) {
+ RenderUtils.drawSlotText(xPos, yPos, text, scale)
+ }
+
+ private fun drawSlotText(
+ xPos: Int,
+ yPos: Int,
+ text: String,
+ scale: Float,
+ ) {
val fontRenderer = Minecraft.getMinecraft().fontRendererObj
GlStateManager.disableLighting()