Name the companion object of Element and rename BaseColor to TransparentColor.

This commit is contained in:
Username404-59 2021-04-10 15:34:30 +02:00
parent bf5c276178
commit 029382c9b5
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 2 additions and 2 deletions

View File

@ -9,10 +9,10 @@ abstract class Element(
var x: Int, var y: Int,
val width: Int, val height: Int
): Renderable {
companion object {
companion object Rendering {
@JvmStatic protected val tessellator: Tesselator = Tesselator.getInstance()
@JvmStatic protected val buffer: BufferBuilder = tessellator.builder
const val BaseColor: Int = -0x1
const val TransparentColor: Int = -0x1
}
fun display(stack: PoseStack? = null) { if (!hidden) render(stack) }
var hidden: Boolean = false