Package org.bukkit.inventory.meta
Interface CrossbowMeta
- All Superinterfaces:
- Cloneable,- ConfigurationSerializable,- ItemMeta,- PersistentDataHolder
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds a charged projectile to this item.Returns an immutable list of the projectiles charged on this item.booleanReturns whether the item has any charged projectiles.voidsetChargedProjectiles(@Nullable List<ItemStack> projectiles) Sets the projectiles charged on this item.Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializableserializeMethods inherited from interface org.bukkit.inventory.meta.ItemMetaaddAttributeModifier, addEnchant, addItemFlags, clone, displayName, displayName, getAsComponentString, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCustomModelData, getCustomTagContainer, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchantmentGlintOverride, getEnchants, getFood, getItemFlags, getItemName, getLocalizedName, getLore, getLoreComponents, getMaxStackSize, getRarity, getTool, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDisplayName, hasEnchant, hasEnchantmentGlintOverride, hasEnchants, hasFood, hasItemFlag, hasItemName, hasLocalizedName, hasLore, hasMaxStackSize, hasRarity, hasTool, isFireResistant, isHideTooltip, isUnbreakable, itemName, itemName, lore, lore, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeEnchantments, removeItemFlags, setAttributeModifiers, setCustomModelData, setDisplayName, setDisplayNameComponent, setEnchantmentGlintOverride, setFireResistant, setFood, setHideTooltip, setItemName, setLocalizedName, setLore, setLoreComponents, setMaxStackSize, setRarity, setTool, setUnbreakable, setVersionMethods inherited from interface org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainer
- 
Method Details- 
hasChargedProjectilesboolean hasChargedProjectiles()Returns whether the item has any charged projectiles.- Returns:
- whether charged projectiles are present
 
- 
getChargedProjectilesReturns an immutable list of the projectiles charged on this item.- Returns:
- charged projectiles
 
- 
setChargedProjectilesSets the projectiles charged on this item. Removes all projectiles when given null.- Parameters:
- projectiles- the projectiles to set
- Throws:
- IllegalArgumentException- if one of the projectiles is empty
 
- 
addChargedProjectileAdds a charged projectile to this item.- Parameters:
- item- projectile
- Throws:
- IllegalArgumentException- if the projectile is empty
 
 
-