程序包 org.bukkit.inventory.meta

# 接口 MusicInstrumentMeta

所有超级接口:
  `Cloneable`, `ConfigurationSerializable`, `ItemMeta`, `PersistentDataHolder`

public interface MusicInstrumentMeta extends ItemMeta

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull MusicInstrumentMeta`
  `clone()`
  `@Nullable MusicInstrument`
  `getInstrument()`
  Gets the instrument of the goat horn.
  `void`
  `setInstrument(@Nullable MusicInstrument instrument)`
  Sets the goat horn's instrument.

  ### 从接口继承的方法 org.bukkit.configuration.serialization.ConfigurationSerializable

  `serialize`

  ### 从接口继承的方法 org.bukkit.inventory.meta.ItemMeta

  `addAttributeModifier, addEnchant, addItemFlags, getAsComponentString, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCustomModelData, getCustomTagContainer, getDisplayName, getEnchantLevel, getEnchantmentGlintOverride, getEnchants, getFood, getItemFlags, getItemName, getJukeboxPlayable, getLocalizedName, getLore, getMaxStackSize, getRarity, getTool, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDisplayName, hasEnchant, hasEnchantmentGlintOverride, hasEnchants, hasFood, hasItemFlag, hasItemName, hasJukeboxPlayable, hasLocalizedName, hasLore, hasMaxStackSize, hasRarity, hasTool, isFireResistant, isHideTooltip, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeEnchantments, removeItemFlags, setAttributeModifiers, setCustomModelData, setDisplayName, setEnchantmentGlintOverride, setFireResistant, setFood, setHideTooltip, setItemName, setJukeboxPlayable, setLocalizedName, setLore, setMaxStackSize, setRarity, setTool, setUnbreakable, setVersion`

  ### 从接口继承的方法 org.bukkit.persistence.PersistentDataHolder

  `getPersistentDataContainer`

- ## 方法详细资料

  - ### setInstrument

    void setInstrument(@Nullable @Nullable MusicInstrument instrument)
    Sets the goat horn's instrument.
    参数:
      `instrument` - the instrument to set

  - ### getInstrument

    @Nullable @Nullable MusicInstrument getInstrument()
    Gets the instrument of the goat horn.
    返回:
      The instrument of the goat horn

  - ### clone

    @NotNull @NotNull MusicInstrumentMeta clone()
    指定者:
      `clone` 在接口中 `ItemMeta`