1 2 3 4 5 6 7 8 9 10 11 12 13
package moe.nea.firmament.util import net.minecraft.text.TextColor import net.minecraft.util.DyeColor fun DyeColor.toShedaniel(): me.shedaniel.math.Color = me.shedaniel.math.Color.ofOpaque(this.signColor) fun DyeColor.toTextColor(): TextColor = TextColor.fromRgb(this.signColor)