public interface BundleMeta extends ItemMeta
Modifier and Type | Method and Description |
---|---|
void |
addItem(ItemStack item)
Adds an item to this item.
|
List<ItemStack> |
getItems()
Returns an immutable list of the items stored in this item.
|
boolean |
hasItems()
Returns whether the item has any items.
|
void |
setItems(List<ItemStack> items)
Sets the items stored in this item.
|
addAttributeModifier, addEnchant, addItemFlags, clone, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCustomModelData, getCustomTagContainer, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCustomModelData, setDisplayName, setLocalizedName, setLore, setUnbreakable, setVersion
serialize
getPersistentDataContainer
boolean hasItems()
@NotNull List<ItemStack> getItems()
void setItems(@Nullable List<ItemStack> items)
items
- the items to setvoid addItem(@NotNull ItemStack item)
item
- item to addCopyright © 2022. All rights reserved.