package net.shadowfacts.phycon.util import net.minecraft.text.* import net.minecraft.util.Formatting import java.util.* /** * @author shadowfacts */ fun text(build: TextContext.() -> Unit): Text { val context = TextContext() context.build() return context.toText() } class TextContext( private val texts: MutableList = mutableListOf(), private val styles: Deque