diff options
author | nea <nea@nea.moe> | 2023-06-01 22:38:09 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-06-01 22:38:09 +0200 |
commit | 3a24eb80f328ec55cb4587e712a6f0c02dfa5c89 (patch) | |
tree | d56ac2c53bb766802091f89fc8a3da5d747740bc /src/main/kotlin/moe/nea/firmament/util | |
parent | c969074af3ba24f7304cf78ab9fb95eb52743ba9 (diff) | |
download | Firmament-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.kt | 6 |
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) |