public interface CrossbowMeta extends ItemMeta
Modifier and Type | Method and Description |
---|---|
void |
addChargedProjectile(@NotNull ItemStack item)
Adds a charged projectile to this item.
|
@NotNull 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(@Nullable List<ItemStack> projectiles)
Sets the projectiles charged on this item.
|
addAttributeModifier, addEnchant, addItemFlags, clone, displayName, displayName, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDestroyableKeys, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getLoreComponents, getPlaceableKeys, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasPlaceableKeys, isUnbreakable, lore, lore, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setLocalizedName, setLore, setLoreComponents, setPlaceableKeys, setUnbreakable, setVersion
serialize
getPersistentDataContainer
boolean hasChargedProjectiles()
@NotNull @NotNull List<ItemStack> getChargedProjectiles()
void setChargedProjectiles(@Nullable @Nullable List<ItemStack> projectiles)
projectiles
- the projectiles to setIllegalArgumentException
- if one of the projectiles is not an
arrow or firework rocketvoid addChargedProjectile(@NotNull @NotNull ItemStack item)
item
- projectileIllegalArgumentException
- if the projectile is not an arrow or
firework rocketCopyright © 2021. All rights reserved.