aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/util
diff options
context:
space:
mode:
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)