public class SpigotItemBuilder extends ItemBuilder
Constructor and Description |
---|
SpigotItemBuilder(ItemStack item) |
SpigotItemBuilder(Material type) |
SpigotItemBuilder(OfflinePlayer owner) |
SpigotItemBuilder(String material) |
Modifier and Type | Method and Description |
---|---|
ItemBuilder |
addToLore(String... loreToAdd) |
ItemBuilder |
amount(int amount) |
ItemStack |
build() |
ItemBuilder |
color(DyeColor color) |
ItemBuilder |
displayName(@Nullable String displayName) |
ItemBuilder |
enchant(Enchantment enchantment,
int level) |
ItemBuilder |
itemFlag(ItemFlag... itemFlag) |
ItemBuilder |
lore(List<String> lore) |
ItemBuilder |
lore(String... lore) |
ItemBuilder |
resetDisplayName() |
ItemBuilder |
unsafeEnchant(Enchantment enchantment,
int level) |
Builder, Builder, Builder, Builder, Builder, enchantIf, enchantIf, getSkullItem, getSkullItem, getSkullItem, getSkullItem
public SpigotItemBuilder(Material type)
public SpigotItemBuilder(ItemStack item)
public SpigotItemBuilder(String material)
public SpigotItemBuilder(OfflinePlayer owner)
public ItemBuilder displayName(@Nullable String displayName)
displayName
in class ItemBuilder
public ItemBuilder resetDisplayName()
resetDisplayName
in class ItemBuilder
public ItemBuilder itemFlag(ItemFlag... itemFlag)
itemFlag
in class ItemBuilder
public ItemBuilder enchant(Enchantment enchantment, int level)
enchant
in class ItemBuilder
public ItemBuilder unsafeEnchant(Enchantment enchantment, int level)
unsafeEnchant
in class ItemBuilder
public ItemBuilder amount(int amount)
amount
in class ItemBuilder
public ItemBuilder color(DyeColor color)
color
in class ItemBuilder
public ItemBuilder lore(List<String> lore)
lore
in class ItemBuilder
public ItemBuilder lore(String... lore)
lore
in class ItemBuilder
public ItemBuilder addToLore(String... loreToAdd)
addToLore
in class ItemBuilder
public ItemStack build()
build
in class ItemBuilder