Package xyz.xenondevs.invui.item.builder
Class ItemBuilder
java.lang.Object
xyz.xenondevs.invui.item.builder.AbstractItemBuilder<ItemBuilder>
xyz.xenondevs.invui.item.builder.ItemBuilder
- All Implemented Interfaces:
Cloneable,Supplier<@NotNull org.bukkit.inventory.ItemStack>,ItemProvider
-
Field Summary
Fields inherited from class xyz.xenondevs.invui.item.builder.AbstractItemBuilder
amount, base, customModelData, damage, displayName, enchantments, itemFlags, lore, material, modifiers, unbreakableFields inherited from interface xyz.xenondevs.invui.item.ItemProvider
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionItemBuilder(@NotNull org.bukkit.Material material) Creates a newItemBuilderbased on the givenMaterial.ItemBuilder(@NotNull org.bukkit.Material material, int amount) Creates a newItemBuilderbased on the givenMaterialand amount.ItemBuilder(@NotNull org.bukkit.inventory.ItemStack base) Constructs a newItemBuilderbased on the giveItemStack. -
Method Summary
Methods inherited from class xyz.xenondevs.invui.item.builder.AbstractItemBuilder
addAllItemFlags, addEnchantment, addItemFlags, addLegacyLoreLines, addLoreLines, addLoreLines, addLoreLines, addLoreLines, addModifier, clearEnchantments, clearItemFlags, clearLore, clearModifiers, clone, get, getAmount, getBase, getCustomModelData, getDamage, getDisplayName, getEnchantments, getItemFlags, getLore, getMaterial, getModifiers, isUnbreakable, removeEnchantment, removeItemFlags, removeLoreLine, setAmount, setCustomModelData, setDamage, setDisplayName, setDisplayName, setDisplayName, setEnchantments, setItemFlags, setLegacyLore, setLore, setMaterial, setUnbreakableMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface xyz.xenondevs.invui.item.ItemProvider
get
-
Constructor Details
-
ItemBuilder
public ItemBuilder(@NotNull @NotNull org.bukkit.Material material) Creates a newItemBuilderbased on the givenMaterial.- Parameters:
material- TheMaterial
-
ItemBuilder
public ItemBuilder(@NotNull @NotNull org.bukkit.Material material, int amount) Creates a newItemBuilderbased on the givenMaterialand amount.- Parameters:
material- TheMaterialamount- The amount
-
ItemBuilder
public ItemBuilder(@NotNull @NotNull org.bukkit.inventory.ItemStack base) Constructs a newItemBuilderbased on the giveItemStack. This will keep theItemStackand uses it'sItemMeta- Parameters:
base- Theto use as a base
-