aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/util
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-06-01 22:38:09 +0200
committernea <nea@nea.moe>2023-06-01 22:38:09 +0200
commit3a24eb80f328ec55cb4587e712a6f0c02dfa5c89 (patch)
treed56ac2c53bb766802091f89fc8a3da5d747740bc /src/main/kotlin/moe/nea/firmament/util
parentc969074af3ba24f7304cf78ab9fb95eb52743ba9 (diff)
downloadFirmament-3a24eb80f328ec55cb4587e712a6f0c02dfa5c89.tar.gz
Firmament-3a24eb80f328ec55cb4587e712a6f0c02dfa5c89.tar.bz2
Firmament-3a24eb80f328ec55cb4587e712a6f0c02dfa5c89.zip
Add WBar
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/util')
-rw-r--r--src/main/kotlin/moe/nea/firmament/util/colorconversion.kt6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/util/colorconversion.kt b/src/main/kotlin/moe/nea/firmament/util/colorconversion.kt
new file mode 100644
index 0000000..c19eefa
--- /dev/null
+++ b/src/main/kotlin/moe/nea/firmament/util/colorconversion.kt
@@ -0,0 +1,6 @@
+package moe.nea.firmament.util
+
+import net.minecraft.util.DyeColor
+
+fun DyeColor.toShedaniel(): me.shedaniel.math.Color =
+ me.shedaniel.math.Color.ofOpaque(this.signColor)