Uses of Class
io.github.lucfr1746.llibrary.itemstack.ItemBuilder
Packages that use ItemBuilder
-
Uses of ItemBuilder in io.github.lucfr1746.llibrary.itemstack
Subclasses of ItemBuilder in io.github.lucfr1746.llibrary.itemstackModifier and TypeClassDescriptionclass
TheArmorMetaBuilder
class extendsItemBuilder
to provide additional functionality for modifyingArmorMeta
of anItemStack
.class
TheAxolotlBucketBuilder
class extendsItemBuilder
to provide additional functionality for modifyingAxolotlBucketMeta
of anItemStack
.class
TheBannerBuilder
class extendsItemBuilder
to provide additional functionality for modifyingBannerMeta
of anItemStack
.class
TheBookMetaBuilder
class extendsWritableBookBuilder
to provide additional functionality for modifyingBookMeta
of anItemStack
.class
TheBundleBuilder
class extendsItemBuilder
to provide additional functionality for modifyingBundleMeta
of anItemStack
.class
TheCompassBuilder
class extendsItemBuilder
to provide additional functionality for modifyingCompassMeta
of anItemStack
.class
TheCrossbowBuilder
class extendsItemBuilder
to provide additional functionality for modifyingCrossbowMeta
of anItemStack
.class
TheDamageableBuilder
class extendsItemBuilder
to provide additional functionality for modifyingDamageable
items in anItemStack
.class
TheEnchantmentStorageBuilder
class extendsItemBuilder
to provide additional functionality for modifyingEnchantmentStorageMeta
of anItemStack
.class
TheFireworkBuilder
class extendsItemBuilder
to provide additional functionality for modifyingFireworkMeta
of anItemStack
.class
TheFireworkEffectBuilder
class extendsItemBuilder
to provide additional functionality for modifyingFireworkEffectMeta
of anItemStack
.class
TheKnowledgeBookBuilder
class extendsItemBuilder
to provide additional functionality for modifyingKnowledgeBookMeta
of anItemStack
.class
TheLeatherArmorBuilder
class extendsItemBuilder
to provide additional functionality for modifyingLeatherArmorMeta
of anItemStack
.class
TheMapBuilder
class extendsItemBuilder
to provide additional functionality for modifyingMapMeta
of anItemStack
.class
TheMusicInstrumentBuilder
class extendsItemBuilder
to provide additional functionality for modifyingMusicInstrumentMeta
of anItemStack
.class
TheOminousBottleBuilder
class extendsItemBuilder
to provide additional functionality for modifyingOminousBottleMeta
of anItemStack
.class
ThePotionBuilder
class extendsItemBuilder
to provide additional functionality for modifyingPotionMeta
of anItemStack
.class
TheRepairableBuilder
class extendsItemBuilder
to provide additional functionality for modifyingRepairable
meta of anItemStack
.class
TheShieldBuilder
class extendsItemBuilder
to provide additional functionality for modifyingShieldMeta
of anItemStack
.class
TheSkullBuilder
class extendsItemBuilder
to provide additional functionality for modifyingSkullMeta
of anItemStack
.class
TheSpawnEggBuilder
class extendsItemBuilder
to provide additional functionality for modifyingSpawnEggMeta
of anItemStack
.class
TheSuspiciousStewBuilder
class extendsItemBuilder
to provide additional functionality for modifyingSuspiciousStewMeta
of anItemStack
.class
TheTropicalFishBucketBuilder
class extendsItemBuilder
to provide additional functionality for modifyingTropicalFishBucketMeta
of anItemStack
.class
TheWritableBookBuilder
class extendsItemBuilder
to provide additional functionality for modifyingWritableBookMeta
of anItemStack
.Methods in io.github.lucfr1746.llibrary.itemstack that return ItemBuilderModifier and TypeMethodDescriptionItemBuilder.addAttributeModifier
(@NotNull org.bukkit.attribute.Attribute attribute, @NotNull org.bukkit.attribute.AttributeModifier modifier) Add an Attribute and it's Modifier.ItemBuilder.addEnchant
(@NotNull org.bukkit.enchantments.Enchantment enchantment) Adds an enchantment to the item with level 1 and level limit check.ItemBuilder.addEnchant
(@NotNull org.bukkit.enchantments.Enchantment enchantment, int level) Adds or updates an enchantment on the item with level limit check.ItemBuilder.addEnchant
(@NotNull org.bukkit.enchantments.Enchantment enchantment, int level, boolean ignoreLevelLimit) Adds or updates an enchantment on the item.ItemBuilder.addItemFlags
(@NotNull org.bukkit.inventory.ItemFlag... itemFlags) Adds the specified item flags to the item.Adds a single lore line to the item.ItemBuilder.hideAllItemFlags()
Hides all item flags from the item.ItemBuilder.insertLore
(@NotNull String lore, int index) Inserts a lore line at a specified index.ItemBuilder.removeAttributeModifier
(@NotNull org.bukkit.attribute.Attribute attribute) Remove allAttributeModifier
s associated with the givenAttribute
.ItemBuilder.removeAttributeModifier
(@NotNull org.bukkit.attribute.Attribute attribute, @NotNull org.bukkit.attribute.AttributeModifier modifier) Remove a specificAttribute
andAttributeModifier
.ItemBuilder.removeAttributeModifier
(@NotNull org.bukkit.inventory.EquipmentSlot slot) Remove allAttribute
s andAttributeModifier
s for a givenEquipmentSlot
.ItemBuilder.removeEnchant
(@NotNull org.bukkit.enchantments.Enchantment enchantment) Removes a specific enchantment from the item.ItemBuilder.removeEnchants()
Removes all enchantments from the item.ItemBuilder.removeItemFlags
(@NotNull org.bukkit.inventory.ItemFlag... itemFlags) Removes the specified item flags from the item.ItemBuilder.replaceLore
(@NotNull String from, @NotNull String to) Replaces occurrences of a specific substring in the item's lore.ItemBuilder.setAmount
(int amount) Sets the number of items in the stack.ItemBuilder.setAttributeModifiers
(@Nullable com.google.common.collect.Multimap<org.bukkit.attribute.Attribute, org.bukkit.attribute.AttributeModifier> attributeModifiers) Set allAttribute
s and theirAttributeModifier
s.ItemBuilder.setCustomModelData
(Integer data) Sets the Custom Model Data for the item.ItemBuilder.setDamageResistant
(@Nullable org.bukkit.Tag<org.bukkit.damage.DamageType> tag) Sets the damage resistance tag of the item.ItemBuilder.setDisplayName
(String name) Sets the display name of the item.ItemBuilder.setEnchantable
(@Nullable Integer enchantable) Sets the enchantable value of the item.ItemBuilder.setEnchantmentGlintOverride
(@Nullable Boolean override) Sets or removes the enchantment glint override.ItemBuilder.setEquippableComponent
(org.bukkit.inventory.EquipmentSlot equipmentSlot) Creates and sets a custom equippable component for the item using the specified equipment slot.ItemBuilder.setEquippableComponent
(@Nullable org.bukkit.inventory.meta.components.EquippableComponent equippable) Sets the equippable component for the item.ItemBuilder.setFood
(int nutrition, float saturation, boolean canEatOnFull) Creates and sets a custom food component for this item.ItemBuilder.setFoodComponent
(@Nullable org.bukkit.inventory.meta.components.FoodComponent food) Sets the food component for this item.ItemBuilder.setGlider
(boolean glider) Sets the glider status of the item.ItemBuilder.setHideTooltip
(boolean hideTooltip) Sets whether tooltips should be hidden for the item.ItemBuilder.setItemModel
(@NotNull String value) Sets the item model of the item using a string.ItemBuilder.setItemModel
(@Nullable org.bukkit.NamespacedKey itemModel) Sets the item model of the item.ItemBuilder.setJukeboxPlayableComponent
(String keyValue, org.bukkit.JukeboxSong jukeboxSong, boolean showInTooltip) Creates and sets a custom JukeboxPlayableComponent using a key value string, song, and tooltip visibility.ItemBuilder.setJukeboxPlayableComponent
(@Nullable org.bukkit.inventory.meta.components.JukeboxPlayableComponent jukeboxPlayable) Sets the JukeboxPlayableComponent of the item.ItemBuilder.setJukeboxPlayableComponent
(org.bukkit.NamespacedKey songKey, org.bukkit.JukeboxSong jukeboxSong, boolean showInTooltip) Creates and sets a custom JukeboxPlayableComponent using a song key, song, and tooltip visibility.Sets the lore of the item using an array of strings.Sets the lore of the item using a list of strings.ItemBuilder.setMaxStackSize
(@Nullable Integer max) Sets the max stack size of the item.ItemBuilder.setRarity
(@Nullable org.bukkit.inventory.ItemRarity rarity) Sets the rarity of the item.ItemBuilder.setToolComponent
(float defaultMiningSpeed, int damagePerBlock) Creates and sets a newCustomToolComponent
for the item with the specified default mining speed and damage per block.ItemBuilder.setToolComponent
(@Nullable org.bukkit.inventory.meta.components.ToolComponent tool) Sets theToolComponent
for the item.ItemBuilder.setTooltipStyle
(@NotNull String value) Sets the tooltip style of the item using a string.ItemBuilder.setTooltipStyle
(@Nullable org.bukkit.NamespacedKey tooltipStyle) Sets the tooltip style of the item.ItemBuilder.setType
(@NotNull org.bukkit.Material material) Sets the type of the item stack.ItemBuilder.setUnbreakable
(boolean unbreakable) Sets the unbreakable status of the item.ItemBuilder.setUseCooldownComponent
(float cooldownSeconds, @NotNull String keyValue) Creates and sets a custom use cooldown for this item using a string value for the namespace key.ItemBuilder.setUseCooldownComponent
(float cooldownSeconds, @NotNull org.bukkit.NamespacedKey cooldownGroup) Sets a custom use cooldown for this item.ItemBuilder.setUseCooldownComponent
(@Nullable org.bukkit.inventory.meta.components.UseCooldownComponent cooldown) Sets the cooldown component for this item.ItemBuilder.setUseRemainder
(@Nullable org.bukkit.inventory.ItemStack remainder) Sets the item that will remain after using this item.