From 091f581bd23e52a936c3d8d672205071b0bb9d13 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Wed, 21 May 2025 16:34:15 +0200 Subject: feat(debug): Add /firm dev screens command --- src/main/kotlin/commands/rome.kt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/main/kotlin/commands') diff --git a/src/main/kotlin/commands/rome.kt b/src/main/kotlin/commands/rome.kt index e6d6dfe..9fc5386 100644 --- a/src/main/kotlin/commands/rome.kt +++ b/src/main/kotlin/commands/rome.kt @@ -228,6 +228,15 @@ fun firmamentCommand() = literal("firmament") { } } } + thenLiteral("screens") { + thenExecute { + MC.sendChat(Text.literal(""" + |Screen: ${MC.screen} (${MC.screen?.title}) + |Screen Handler: ${MC.handledScreen?.screenHandler} ${MC.handledScreen?.screenHandler?.syncId} + |Player Screen Handler: ${MC.player?.currentScreenHandler} ${MC.player?.currentScreenHandler?.syncId} + """.trimMargin())) + } + } thenLiteral("blocks") { thenExecute { ScreenUtil.setScreenLater(MiningBlockInfoUi.makeScreen()) -- cgit