diff options
author | Linnea Gräf <nea@nea.moe> | 2025-05-21 16:34:15 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2025-05-21 16:34:15 +0200 |
commit | 091f581bd23e52a936c3d8d672205071b0bb9d13 (patch) | |
tree | 9e015e3a41004555b4014c4f1f62f419118f7d5b | |
parent | 246bd906a5a559712f3d447df9b4ba97d116d2b5 (diff) | |
download | Firmament-091f581bd23e52a936c3d8d672205071b0bb9d13.tar.gz Firmament-091f581bd23e52a936c3d8d672205071b0bb9d13.tar.bz2 Firmament-091f581bd23e52a936c3d8d672205071b0bb9d13.zip |
feat(debug): Add /firm dev screens command
-rw-r--r-- | src/main/kotlin/commands/rome.kt | 9 |
1 files changed, 9 insertions, 0 deletions
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()) |