程序包 org.bukkit

# 类 MusicInstrument

java.lang.Object
org.bukkit.MusicInstrument

所有已实现的接口:
  `Keyed`

public abstract class MusicInstrument extends Object implements Keyed

- ## 字段概要

  字段
  修饰符和类型
  字段
  说明
  `static final MusicInstrument`
  `ADMIRE_GOAT_HORN`
  `static final MusicInstrument`
  `CALL_GOAT_HORN`
  `static final MusicInstrument`
  `DREAM_GOAT_HORN`
  `static final MusicInstrument`
  `FEEL_GOAT_HORN`
  `static final MusicInstrument`
  `PONDER_GOAT_HORN`
  `static final MusicInstrument`
  `SEEK_GOAT_HORN`
  `static final MusicInstrument`
  `SING_GOAT_HORN`
  `static final MusicInstrument`
  `YEARN_GOAT_HORN`

- ## 构造器概要

  构造器
  构造器
  说明
  `MusicInstrument()`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `static @Nullable MusicInstrument`
  `getByKey(@NotNull NamespacedKey namespacedKey)`
  已过时。
  Use `Registry.get(NamespacedKey)` instead.
  `static @NotNull Collection<MusicInstrument>`
  `values()`
  已过时。
  use `Iterable.iterator()`.

  ### 从类继承的方法 java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

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

  `getKey`

- ## 字段详细资料

  - ### PONDER_GOAT_HORN

    public static final MusicInstrument PONDER_GOAT_HORN

  - ### SING_GOAT_HORN

    public static final MusicInstrument SING_GOAT_HORN

  - ### SEEK_GOAT_HORN

    public static final MusicInstrument SEEK_GOAT_HORN

  - ### FEEL_GOAT_HORN

    public static final MusicInstrument FEEL_GOAT_HORN

  - ### ADMIRE_GOAT_HORN

    public static final MusicInstrument ADMIRE_GOAT_HORN

  - ### CALL_GOAT_HORN

    public static final MusicInstrument CALL_GOAT_HORN

  - ### YEARN_GOAT_HORN

    public static final MusicInstrument YEARN_GOAT_HORN

  - ### DREAM_GOAT_HORN

    public static final MusicInstrument DREAM_GOAT_HORN

- ## 构造器详细资料

  - ### MusicInstrument

    public MusicInstrument()

- ## 方法详细资料

  - ### getByKey

    @Nullable @Deprecated public static @Nullable MusicInstrument getByKey(@NotNull @NotNull NamespacedKey namespacedKey)
    已过时。
    Use `Registry.get(NamespacedKey)` instead.
    Returns a `MusicInstrument` by a `NamespacedKey`.
    参数:
      `namespacedKey` - the key
    返回:
      the event or null

  - ### values

    @NotNull @Deprecated public static @NotNull Collection<MusicInstrument> values()
    已过时。
    use `Iterable.iterator()`.
    Returns all known MusicInstruments.
    返回:
      the memoryKeys