enchantment

public ItemBuilder enchantment(Enchantment enchantment, int level)

Appends an enchantment to the itemstack (unsafely, meaning it'll add it even it's not supposed to be otherwise possible)

Return

The current ItemBuilder instance

Parameters

enchantment

Enchantment to add onto the itemstack

level

The level of the enchantment


public ItemBuilder enchantment(Enchantment enchantment)

Appends an enchantment to the itemstack (unsafely, meaning it'll add it even it's not supposed to be otherwise possible) at the default level of 1

Return

The current ItemBuilder instance

Parameters

enchantment

Enchantment to add onto the itemstack