aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/util/MC.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-10-13 20:47:59 +0200
committerLinnea Gräf <nea@nea.moe>2024-10-13 20:47:59 +0200
commit0cc77949c907d38497f8cdf6fd8198fe5f0a9440 (patch)
tree0549dfcb0d621c23d225e29be374373ad1b39b2d /src/main/kotlin/util/MC.kt
parent87b851373071490bb371ba1160f85f0341579cb2 (diff)
downloadFirmament-0cc77949c907d38497f8cdf6fd8198fe5f0a9440.tar.gz
Firmament-0cc77949c907d38497f8cdf6fd8198fe5f0a9440.tar.bz2
Firmament-0cc77949c907d38497f8cdf6fd8198fe5f0a9440.zip
Add current pet highlighter
Diffstat (limited to 'src/main/kotlin/util/MC.kt')
-rw-r--r--src/main/kotlin/util/MC.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/kotlin/util/MC.kt b/src/main/kotlin/util/MC.kt
index 09aa7aa..fc42be9 100644
--- a/src/main/kotlin/util/MC.kt
+++ b/src/main/kotlin/util/MC.kt
@@ -86,6 +86,7 @@ object MC {
inline var screen
get() = instance.currentScreen
set(value) = instance.setScreen(value)
+ val screenName get() = screen?.title?.unformattedString?.trim()
inline val handledScreen: HandledScreen<*>? get() = instance.currentScreen as? HandledScreen<*>
inline val window get() = instance.window
inline val currentRegistries: RegistryWrapper.WrapperLookup? get() = world?.registryManager