Class ItemBuilder

java.lang.Object
dev.plex.util.item.ItemBuilder

public class ItemBuilder extends Object
  • 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

      public ItemBuilder lore (net.kyori.adventure.text.Component... lore)
    • lore

      public ItemBuilder lore (String... lore)
    • displayName

      public ItemBuilder displayName (net.kyori.adventure.text.Component displayName)
    • displayName

      public ItemBuilder displayName (String displayName)
    • addEnchantment

      public ItemBuilder addEnchantment (org.bukkit.enchantments.Enchantment enchantment, int level)
    • addItemFlag

      public ItemBuilder addItemFlag (org.bukkit.inventory.ItemFlag... flags)
    • addAttributeModifier

      public ItemBuilder addAttributeModifier (org.bukkit.attribute.Attribute attribute, org.bukkit.attribute.AttributeModifier modifier)
    • owner

      public ItemBuilder owner (org.bukkit.OfflinePlayer player)
    • build

      public org.bukkit.inventory.ItemStack build()