fillRect

fun fillRect(x1: Int, y1: Int, x2: Int, y2: Int, material: Material, pickable: Boolean = false, creator: SlotCreator.() -> Unit = {})

Fills a rectangular area with a material.

Parameters

x1

Starting row index.

y1

Starting column index.

x2

Ending row index.

y2

Ending column index.

material

The material to fill with.

pickable

Whether the items are pickable.

creator

Additional configuration for each slot in the area.


fun fillRect(s1: Slot, s2: Slot, material: Material, pickable: Boolean = false, creator: SlotCreator.() -> Unit = {})

Fills a rectangular area defined by two slots with a material.