Make the color and opacity properties of the ColoredElement class private
This commit is contained in:
		
							parent
							
								
									7ddbf934f7
								
							
						
					
					
						commit
						c54ac5b1f8
					
				@ -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 {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user