padding

fun padding(value: Int): ComponentDecorationRenderer

Can be used to add padding to a Component. Padding is measured in tiles.

Parameters

value

the padding to add to all sides (top, right, bottom and left)

fun padding(top: Int, right: Int, bottom: Int, left: Int): ComponentDecorationRenderer

Can be used to add padding to a Component. Padding is measured in tiles.

fun padding(y: Int, x: Int): ComponentDecorationRenderer

Can be used to add padding to a Component. Padding is measured in tiles.

Parameters

x

horizontal padding (left and right)

y

vertical padding (top and bottom)