Make the color and opacity properties of the ColoredElement class private

This commit is contained in:
Username404-59 2021-04-30 14:58:36 +02:00
parent 7ddbf934f7
commit c54ac5b1f8
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ abstract class Element(
var hidden: Boolean = false; protected set var hidden: Boolean = false; protected set
} }
abstract class ColoredElement(x: Double, y: Double, width: Int, height: Int, val color: Int, val opacity: Float) : Element(x, y, width, height) { abstract class ColoredElement(x: Double, y: Double, width: Int, height: Int, private val color: Int, private val opacity: Float) : Element(x, y, width, height) {
companion object { companion object {
const val TransparentColor: Int = -0x1 const val TransparentColor: Int = -0x1
@JvmStatic protected fun VertexConsumer.colorIt(color: Int, opacity: Float = 1F): VertexConsumer { @JvmStatic protected fun VertexConsumer.colorIt(color: Int, opacity: Float = 1F): VertexConsumer {