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
(String displayName) displayName
(net.kyori.adventure.text.Component displayName) lore
(net.kyori.adventure.text.Component... lore) owner
(org.bukkit.OfflinePlayer player)
-
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
-
lore
-
displayName
-
displayName
-
addEnchantment
-
addItemFlag
-
addAttributeModifier
public ItemBuilder addAttributeModifier(org.bukkit.attribute.Attribute attribute, org.bukkit.attribute.AttributeModifier modifier) -
owner
-
build
public org.bukkit.inventory.ItemStack build()
-