Name the companion object of Element and rename BaseColor to TransparentColor.
This commit is contained in:
parent
bf5c276178
commit
029382c9b5
|
@ -9,10 +9,10 @@ abstract class Element(
|
||||||
var x: Int, var y: Int,
|
var x: Int, var y: Int,
|
||||||
val width: Int, val height: Int
|
val width: Int, val height: Int
|
||||||
): Renderable {
|
): Renderable {
|
||||||
companion object {
|
companion object Rendering {
|
||||||
@JvmStatic protected val tessellator: Tesselator = Tesselator.getInstance()
|
@JvmStatic protected val tessellator: Tesselator = Tesselator.getInstance()
|
||||||
@JvmStatic protected val buffer: BufferBuilder = tessellator.builder
|
@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) }
|
fun display(stack: PoseStack? = null) { if (!hidden) render(stack) }
|
||||||
var hidden: Boolean = false
|
var hidden: Boolean = false
|
||||||
|
|
Loading…
Reference in New Issue