diff options
author | Lorenz <ESs95s3P5z8Pheb> | 2022-07-14 00:39:05 +0200 |
---|---|---|
committer | Lorenz <ESs95s3P5z8Pheb> | 2022-07-14 00:39:05 +0200 |
commit | c09d6ee504ae43acbc7789cdbf69bc1de387bd18 (patch) | |
tree | 1fc1a1bfff6b9787f258afe4f21dd724494ce54c /src/main/java/at/lorenz/mod/test | |
parent | b025e2525b8fbf2aabd74870d4d3013405861e1b (diff) | |
download | skyhanni-c09d6ee504ae43acbc7789cdbf69bc1de387bd18.tar.gz skyhanni-c09d6ee504ae43acbc7789cdbf69bc1de387bd18.tar.bz2 skyhanni-c09d6ee504ae43acbc7789cdbf69bc1de387bd18.zip |
add clean dungeon end feature
Diffstat (limited to 'src/main/java/at/lorenz/mod/test')
-rw-r--r-- | src/main/java/at/lorenz/mod/test/LorenzTest.kt | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/src/main/java/at/lorenz/mod/test/LorenzTest.kt b/src/main/java/at/lorenz/mod/test/LorenzTest.kt index 480317608..01ecf3dcd 100644 --- a/src/main/java/at/lorenz/mod/test/LorenzTest.kt +++ b/src/main/java/at/lorenz/mod/test/LorenzTest.kt @@ -2,15 +2,39 @@ 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 at.lorenz.mod.utils.LorenzLogger import net.minecraftforge.client.event.RenderGameOverlayEvent class LorenzTest { + + var log = LorenzLogger("debug/packets") + + companion object { + var enabled = false + var text = "" + + val debugLogger = LorenzLogger("debug/test") + } @SubscribeEvent fun renderOverlay(event: RenderGameOverlayEvent.Post) { if (!LorenzMod.feature.debug.enabled) return -// val currentScreen = Minecraft.getMinecraft().currentScreen -// -// LorenzMod.feature.debug.testPos.renderString("currentScreen: $currentScreen") + if (enabled) { + LorenzMod.feature.debug.testPos.renderString(text) + } } + +// @SubscribeEvent +// fun onReceivePacket(event: PacketEvent.ReceiveEvent) { +// if (!LorenzMod.feature.debug.enabled) return +// +// var packet = event.packet +// var javaClass = packet.javaClass +// var name = javaClass.name +// +// if (enabled) { +// log.log(name) +// } +// } }
\ No newline at end of file |