asGuiItem

fun Material.asGuiItem(block: GuiItemBuilder.() -> Unit = {}): ItemStack

Material から ItemStack を構築する DSL

val item = Material.DIAMOND_SWORD.asGuiItem {
displayName = "強力な剣"
lore {
+"攻撃力: +10"
+"耐久値: 100"
}
}