Cloneable, ConfigurationSerializable, ItemMeta, PersistentDataHolderpublic interface CrossbowMeta extends ItemMeta
ItemMeta.Spigot| Modifier and Type | Method | Description | 
|---|---|---|
| void | addChargedProjectile(ItemStack item) | Adds a charged projectile to this item. | 
| List<ItemStack> | getChargedProjectiles() | Returns an immutable list of the projectiles charged on this item. | 
| boolean | hasChargedProjectiles() | Returns whether the item has any charged projectiles. | 
| void | setChargedProjectiles(List<ItemStack> projectiles) | Sets the projectiles charged on this item. | 
serializeaddAttributeModifier, addEnchant, addItemFlags, clone, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDestroyableKeys, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getPlaceableKeys, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasPlaceableKeys, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDestroyableKeys, setDisplayName, setLocalizedName, setLore, setPlaceableKeys, setUnbreakable, setVersion, spigotgetPersistentDataContainerboolean hasChargedProjectiles()
@NotNull List<ItemStack> getChargedProjectiles()
void setChargedProjectiles(@Nullable
                           List<ItemStack> projectiles)
projectiles - the projectiles to setIllegalArgumentException - if one of the projectiles is not an
 arrow or firework rocketvoid addChargedProjectile(@NotNull
                          ItemStack item)
item - projectileIllegalArgumentException - if the projectile is not an arrow or
 firework rocketCopyright © 2020. All rights reserved.