aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorLorenz <ESs95s3P5z8Pheb>2022-07-11 23:31:32 +0200
committerLorenz <ESs95s3P5z8Pheb>2022-07-11 23:31:32 +0200
commit05c518b2e583e337ad0b2039cd142e6ab9bd152e (patch)
tree9dad6a2268594602b9e3e77333b9705754fd0911 /src/main
parentddf652388cce1d14dc1a9dc7c44c5b6ccbb9c367 (diff)
downloadskyhanni-05c518b2e583e337ad0b2039cd142e6ab9bd152e.tar.gz
skyhanni-05c518b2e583e337ad0b2039cd142e6ab9bd152e.tar.bz2
skyhanni-05c518b2e583e337ad0b2039cd142e6ab9bd152e.zip
add test method
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/lorenz/mod/LorenzMod.java2
-rw-r--r--src/main/java/at/lorenz/mod/test/LorenzTest.kt19
2 files changed, 21 insertions, 0 deletions
diff --git a/src/main/java/at/lorenz/mod/LorenzMod.java b/src/main/java/at/lorenz/mod/LorenzMod.java
index d4c871dfa..1dd6edaa4 100644
--- a/src/main/java/at/lorenz/mod/LorenzMod.java
+++ b/src/main/java/at/lorenz/mod/LorenzMod.java
@@ -12,6 +12,7 @@ import at.lorenz.mod.dungeon.DungeonHighlightClickedBlocks;
import at.lorenz.mod.dungeon.damageindicator.DungeonBossDamageIndicator;
import at.lorenz.mod.items.ItemAbilityCooldown;
import at.lorenz.mod.misc.*;
+import at.lorenz.mod.test.LorenzTest;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.thatgravyboat.skyblockhud_2.commands.Commands;
@@ -66,6 +67,7 @@ public class LorenzMod {
Commands.init();
+ MinecraftForge.EVENT_BUS.register(new LorenzTest());
MinecraftForge.EVENT_BUS.register(new ButtonOnPause());
// MinecraftForge.EVENT_BUS.register(new LeaderboardGetter());
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