Cloneable, ConfigurationSerializable, ItemMeta, PersistentDataHolderpublic interface BlockDataMeta extends ItemMeta
| Modifier and Type | Method | Description | 
|---|---|---|
| @NotNull BlockData | getBlockData(@NotNull Material material) | Returns the currently attached block data for this item or creates a new
 one if one doesn't exist. | 
| boolean | hasBlockData() | Returns whether the item has block data currently attached to it. | 
| void | setBlockData(@NotNull BlockData blockData) | Attaches a copy of the passed block data to the item. | 
serializeaddAttributeModifier, 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, setVersiongetPersistentDataContainerboolean hasBlockData()
@NotNull @NotNull BlockData getBlockData(@NotNull @NotNull Material material)
setBlockData(org.bukkit.block.data.BlockData)material - the material we wish to get this data in the context ofvoid setBlockData(@NotNull
                  @NotNull BlockData blockData)
blockData - the block data to attach to the block.IllegalArgumentException - if the blockData is null or invalid for
 this item.Copyright © 2020. All rights reserved.