diff options
-rw-r--r-- | src/main/java/at/lorenz/mod/LorenzMod.java | 2 | ||||
-rw-r--r-- | src/main/java/at/lorenz/mod/test/LorenzTest.kt | 19 |
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 |