From 05c518b2e583e337ad0b2039cd142e6ab9bd152e Mon Sep 17 00:00:00 2001 From: Lorenz Date: Mon, 11 Jul 2022 23:31:32 +0200 Subject: add test method --- src/main/java/at/lorenz/mod/test/LorenzTest.kt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/main/java/at/lorenz/mod/test/LorenzTest.kt (limited to 'src/main/java/at/lorenz/mod/test') diff --git a/src/main/java/at/lorenz/mod/test/LorenzTest.kt b/src/main/java/at/lorenz/mod/test/LorenzTest.kt new file mode 100644 index 000000000..de33f3419 --- /dev/null +++ b/src/main/java/at/lorenz/mod/test/LorenzTest.kt @@ -0,0 +1,19 @@ +package at.lorenz.mod.test + +import net.minecraftforge.fml.common.eventhandler.SubscribeEvent +import at.lorenz.mod.LorenzMod +import at.lorenz.mod.utils.GuiRender.renderString +import net.minecraft.client.Minecraft +import net.minecraftforge.client.event.RenderGameOverlayEvent +import net.minecraftforge.fml.common.gameevent.TickEvent + +class LorenzTest { + @SubscribeEvent + fun renderOverlay(event: RenderGameOverlayEvent.Post) { + if (!LorenzMod.feature.debug.enabled) return + +// val currentScreen = Minecraft.getMinecraft().currentScreen +// +// LorenzMod.feature.debug.testPos.renderString("currentScreen: $currentScreen") + } +} \ No newline at end of file -- cgit