ItemBuilder
All ItemStack extensions you can find on ExItemStack.kt.
Item builder
fun item(
material: Material,
amount: Int = 1,
data: Short = 0,
meta: ItemMeta.() -> Unit = {}
): ItemStack
// usage
val myItem = item(Material.DIAMOND, 64)
val myItem2 = item(Material.DIRT, data = 2)Last updated