aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/commands/rome.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/commands/rome.kt')
-rw-r--r--src/main/kotlin/commands/rome.kt14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/kotlin/commands/rome.kt b/src/main/kotlin/commands/rome.kt
index fbcad07..3027a4b 100644
--- a/src/main/kotlin/commands/rome.kt
+++ b/src/main/kotlin/commands/rome.kt
@@ -23,6 +23,8 @@ import moe.nea.firmament.util.MC
import moe.nea.firmament.util.SBData
import moe.nea.firmament.util.ScreenUtil
import moe.nea.firmament.util.SkyblockId
+import moe.nea.firmament.util.collections.InstanceList
+import moe.nea.firmament.util.collections.WeakCache
fun firmamentCommand() = literal("firmament") {
@@ -229,6 +231,18 @@ fun firmamentCommand() = literal("firmament") {
}
}
}
+ thenLiteral("caches") {
+ thenExecute {
+ source.sendFeedback(Text.literal("Caches:"))
+ WeakCache.allInstances.getAll().forEach {
+ source.sendFeedback(Text.literal(" - ${it.name}: ${it.size}"))
+ }
+ source.sendFeedback(Text.translatable("Instance lists:"))
+ InstanceList.allInstances.getAll().forEach {
+ source.sendFeedback(Text.literal(" - ${it.name}: ${it.size}"))
+ }
+ }
+ }
thenLiteral("mixins") {
thenExecute {
source.sendFeedback(Text.translatable("firmament.mixins.start"))