Class CrossbowCreator
java.lang.Object
com.github.pinont.singularitylib.api.items.ItemCreator
com.github.pinont.singularitylib.api.items.CrossbowCreator
A specialized ItemCreator for creating crossbow items.
Extends ItemCreator to provide crossbow-specific functionality like adding charged projectiles.
-
Constructor Summary
ConstructorsConstructorDescriptionCrossbowCreator(org.bukkit.plugin.Plugin plugin) Creates a new CrossbowCreator with a crossbow ItemStack. -
Method Summary
Modifier and TypeMethodDescriptionaddChargedProjectile(org.bukkit.inventory.ItemStack arrow) Adds a charged projectile to the crossbow.Methods inherited from class ItemCreator
addAttribute, addEnchant, addInteraction, addItemFlag, addLore, addLore, addLore, addTag, addTag, addTags, clone, create, getAmount, getInteractions, getItemMeta, getKey, getName, getTagValue, getType, hasTag, removeTag, replaceTag, setAmount, setCannotMove, setDataContainer, setDurability, setDurability, setItemMeta, setModelData, setName, setName, setTagValue, setType, setUnbreakable, setUnstackable
-
Constructor Details
-
CrossbowCreator
public CrossbowCreator(org.bukkit.plugin.Plugin plugin) Creates a new CrossbowCreator with a crossbow ItemStack.
-
-
Method Details
-
addChargedProjectile
Adds a charged projectile to the crossbow.- Parameters:
arrow- the ItemStack representing the projectile to add- Returns:
- this CrossbowCreator for method chaining
-