diff options
author | nea <nea@nea.moe> | 2023-07-23 17:39:47 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-07-23 17:40:26 +0200 |
commit | b8d53d66085c827853325d399e16b85ca4758520 (patch) | |
tree | c421c09cc7dc43abe16835812ee5be9701489dbe /src/main/kotlin/com/dulkirfabric/util | |
parent | 3150e50bc3d75b8809f52a5aa46923ad2ddf8db4 (diff) | |
download | DulkirMod-Fabric-b8d53d66085c827853325d399e16b85ca4758520.tar.gz DulkirMod-Fabric-b8d53d66085c827853325d399e16b85ca4758520.tar.bz2 DulkirMod-Fabric-b8d53d66085c827853325d399e16b85ca4758520.zip |
Use string map for positionspositionbranch
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/util')
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) -) |