Class AbstractItemStackBuilder<B extends AbstractItemStackBuilder<B>>
java.lang.Object
com.guflimc.brick.gui.spigot.item.AbstractItemStackBuilder<B>
- Direct Known Subclasses:
BannerBuilder
,BookBuilder
,FireworkBuilder
,ItemStackBuilder
,LeatherArmorBuilder
,PotionBuilder
,ShieldBuilder
,SkullBuilder
public abstract class AbstractItemStackBuilder<B extends AbstractItemStackBuilder<B>>
extends Object
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractItemStackBuilder
(org.bukkit.inventory.ItemStack itemStack) -
Method Summary
Modifier and TypeMethodDescription<T extends org.bukkit.inventory.meta.ItemMeta>
Borg.bukkit.inventory.ItemStack
build()
withAmount
(int amount) withEnchantment
(org.bukkit.enchantments.Enchantment enchantment) withEnchantment
(org.bukkit.enchantments.Enchantment enchantment, int level) withItemFlag
(org.bukkit.inventory.ItemFlag... flags) withLore
(net.kyori.adventure.text.Component... lines) withName
(net.kyori.adventure.text.Component name) withoutItemFlag
(org.bukkit.inventory.ItemFlag... flags) withToolDamage
(int damage) withType
(org.bukkit.Material material)
-
Field Details
-
itemStack
protected final org.bukkit.inventory.ItemStack itemStack
-
-
Constructor Details
-
AbstractItemStackBuilder
protected AbstractItemStackBuilder(org.bukkit.inventory.ItemStack itemStack)
-
-
Method Details
-
build
public org.bukkit.inventory.ItemStack build() -
transform
-
apply
-
apply
-
apply
-
applyMeta
-
applyMeta
-
withName
-
withName
-
withType
-
withLore
-
withLore
-
withLore
-
clearLore
-
withToolDamage
-
withAmount
-
withEnchantment
-
withEnchantment
-
clearEnchantments
-
withItemFlag
-
withoutItemFlag
-
hideAttributes
-
showAttributes
-