ItemBuilder

class ItemBuilder(material: Material)

Item builder to create custom itemStack

Constructors

ItemBuilder
Link copied to clipboard
fun ItemBuilder(material: Material)

Functions

amount
Link copied to clipboard
fun amount(amount: Int): ItemBuilder

Sets item amount.

build
Link copied to clipboard
fun build(): ItemStack

Build items

enchant
Link copied to clipboard
fun enchant(vararg enchantment: Enchantment): ItemBuilder
fun enchant(enchantment: Enchantment, level: Int): ItemBuilder

Enchant items.

flag
Link copied to clipboard
fun flag(vararg flag: ItemFlag): ItemBuilder

Adds item flags.

lore
Link copied to clipboard
fun lore(vararg lore: String): ItemBuilder

Adds item lore.

fun lore(vararg lore: Component): ItemBuilder

Adds item lore with component.

meta
Link copied to clipboard
fun meta(metaBuilder: MetaBuilder): ItemBuilder

Sets item meta.

name
Link copied to clipboard
fun name(builder: ComponentBuilderAction): ItemBuilder

Sets custom item name with component builder.

fun name(name: String): ItemBuilder

Sets custom item name.