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, unbreakable
Fields inherited from interface xyz.xenondevs.invui.item.ItemProvider
EMPTY
-
Constructor Summary
ConstructorDescriptionItemBuilder
(@NotNull org.bukkit.Material material) Creates a newItemBuilder
based on the givenMaterial
.ItemBuilder
(@NotNull org.bukkit.Material material, int amount) Creates a newItemBuilder
based on the givenMaterial
and amount.ItemBuilder
(@NotNull org.bukkit.inventory.ItemStack base) Constructs a newItemBuilder
based 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, setUnbreakable
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface xyz.xenondevs.invui.item.ItemProvider
get
-
Constructor Details
-
ItemBuilder
public ItemBuilder(@NotNull @NotNull org.bukkit.Material material) Creates a newItemBuilder
based on the givenMaterial
.- Parameters:
material
- TheMaterial
-
ItemBuilder
public ItemBuilder(@NotNull @NotNull org.bukkit.Material material, int amount) Creates a newItemBuilder
based on the givenMaterial
and amount.- Parameters:
material
- TheMaterial
amount
- The amount
-
ItemBuilder
public ItemBuilder(@NotNull @NotNull org.bukkit.inventory.ItemStack base) Constructs a newItemBuilder
based on the giveItemStack
. This will keep theItemStack
and uses it'sItemMeta
- Parameters:
base
- Theto use as a base
-