aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/dulkirfabric/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/util')
-rw-r--r--src/main/kotlin/com/dulkirfabric/util/JarvisIntegrationPlugin.kt2
-rw-r--r--src/main/kotlin/com/dulkirfabric/util/render/HudElement.kt1
-rw-r--r--src/main/kotlin/com/dulkirfabric/util/render/HudElementDefaultPositionings.kt8
3 files changed, 2 insertions, 9 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/util/JarvisIntegrationPlugin.kt b/src/main/kotlin/com/dulkirfabric/util/JarvisIntegrationPlugin.kt
index e1f986b..28b0fd3 100644
--- a/src/main/kotlin/com/dulkirfabric/util/JarvisIntegrationPlugin.kt
+++ b/src/main/kotlin/com/dulkirfabric/util/JarvisIntegrationPlugin.kt
@@ -10,6 +10,6 @@ class JarvisIntegrationPlugin: JarvisPlugin {
}
override fun getAllHuds(): List<JarvisHud> {
- return DulkirConfig.Huds.values.toList()
+ return DulkirConfig.huds.map { it.first }
}
} \ No newline at end of file
diff --git a/src/main/kotlin/com/dulkirfabric/util/render/HudElement.kt b/src/main/kotlin/com/dulkirfabric/util/render/HudElement.kt
index 824c745..d545cbf 100644
--- a/src/main/kotlin/com/dulkirfabric/util/render/HudElement.kt
+++ b/src/main/kotlin/com/dulkirfabric/util/render/HudElement.kt
@@ -6,6 +6,7 @@ import moe.nea.jarvis.api.JarvisScalable
import net.minecraft.text.Text
class HudElement (var positioning: Positioning,
+ val key: String,
private val label: Text,
private val width: Int,
private val height: Int
diff --git a/src/main/kotlin/com/dulkirfabric/util/render/HudElementDefaultPositionings.kt b/src/main/kotlin/com/dulkirfabric/util/render/HudElementDefaultPositionings.kt
deleted file mode 100644
index 9d27158..0000000
--- a/src/main/kotlin/com/dulkirfabric/util/render/HudElementDefaultPositionings.kt
+++ /dev/null
@@ -1,8 +0,0 @@
-package com.dulkirfabric.util.render
-
-import kotlinx.serialization.Serializable
-
-@Serializable
-data class HudElementDefaultPositionings(
- var fooPos: HudElement.Positioning = HudElement.Positioning(.1, .1, 1f)
-)