Package dev.plex.util.item
Class ItemBuilder
java.lang.Object
dev.plex.util.item.ItemBuilder
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAttributeModifier
(org.bukkit.attribute.Attribute attribute, org.bukkit.attribute.AttributeModifier modifier) addEnchantment
(org.bukkit.enchantments.Enchantment enchantment, int level) addItemFlag
(org.bukkit.inventory.ItemFlag... flags) org.bukkit.inventory.ItemStack
build()
displayName
(net.kyori.adventure.text.Component displayName) lore
(net.kyori.adventure.text.Component... lore)
-
Field Details
-
itemStack
private final org.bukkit.inventory.ItemStack itemStack -
meta
private final org.bukkit.inventory.meta.ItemMeta meta
-
-
Constructor Details
-
ItemBuilder
public ItemBuilder(org.bukkit.Material material)
-
-
Method Details
-
lore
-
displayName
-
addEnchantment
-
addItemFlag
-
addAttributeModifier
public ItemBuilder addAttributeModifier(org.bukkit.attribute.Attribute attribute, org.bukkit.attribute.AttributeModifier modifier) -
build
public org.bukkit.inventory.ItemStack build()
-