<h1title="Enum Class Instrument"class="title">Enum Class Instrument</h1>
</div>
<divclass="inheritance"title="Inheritance Tree"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">java.lang.Object</a>
<divclass="inheritance"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html"title="class or interface in java.lang"class="external-link">java.lang.Enum</a><<ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a>>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/Serializable.html"title="class or interface in java.io"class="external-link">Serializable</a></code>, <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Comparable.html"title="class or interface in java.lang"class="external-link">Comparable</a><<ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a>></code>, <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/constant/Constable.html"title="class or interface in java.lang.constant"class="external-link">Constable</a></code></dd>
<spanclass="extends-implements">extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html"title="class or interface in java.lang"class="external-link">Enum</a><<ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a>></span></div>
<h2id="nested-classes-inherited-from-class-java.lang.Enum">Nested classes/interfaces inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html"title="class or interface in java.lang"class="external-link">Enum</a></h2>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.EnumDesc.html"title="class or interface in java.lang"class="external-link">Enum.EnumDesc</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.EnumDesc.html"title="class or interface in java.lang"class="external-link">E</a> extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html"title="class or interface in java.lang"class="external-link">Enum</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.EnumDesc.html"title="class or interface in java.lang"class="external-link">E</a>>></code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a></code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><ahref="#valueOf(java.lang.String)"class="member-name-link">valueOf</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> name)</code></div>
<divclass="block">Returns the enum constant of this class with the specified name.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a>[]</code></div>
<divclass="block">Returns an array containing the constants of this enum class, in
the order they are declared.</div>
</div>
</div>
</div>
</div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-java.lang.Enum">Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html"title="class or interface in java.lang"class="external-link">Enum</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html#clone()"title="class or interface in java.lang"class="external-link">clone</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html#compareTo(E)"title="class or interface in java.lang"class="external-link">compareTo</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html#describeConstable()"title="class or interface in java.lang"class="external-link">describeConstable</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)"title="class or interface in java.lang"class="external-link">equals</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html#finalize()"title="class or interface in java.lang"class="external-link">finalize</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()"title="class or interface in java.lang"class="external-link">getDeclaringClass</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html#hashCode()"title="class or interface in java.lang"class="external-link">hashCode</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html#name()"title="class or interface in java.lang"class="external-link">name</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html#ordinal()"title="class or interface in java.lang"class="external-link">ordinal</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html#toString()"title="class or interface in java.lang"class="external-link">toString</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)"title="class or interface in java.lang"class="external-link">valueOf</a></code></div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#getClass()"title="class or interface in java.lang"class="external-link">getClass</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notify()"title="class or interface in java.lang"class="external-link">notify</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notifyAll()"title="class or interface in java.lang"class="external-link">notifyAll</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait()"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long)"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long,int)"title="class or interface in java.lang"class="external-link">wait</a></code></div>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a></span> <spanclass="element-name">PIANO</span></div>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a></span> <spanclass="element-name">BASS_DRUM</span></div>
<divclass="block">Bass drum is normally played when a note block is on top of a
stone-like block.</div>
</section>
</li>
<li>
<sectionclass="detail"id="SNARE_DRUM">
<h3>SNARE_DRUM</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a></span> <spanclass="element-name">SNARE_DRUM</span></div>
<divclass="block">Snare drum is normally played when a note block is on top of a sandy
block.</div>
</section>
</li>
<li>
<sectionclass="detail"id="STICKS">
<h3>STICKS</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a></span> <spanclass="element-name">STICKS</span></div>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a></span> <spanclass="element-name">BASS_GUITAR</span></div>
<divclass="block">Bass guitar is normally played when a note block is on top of a wooden
block.</div>
</section>
</li>
<li>
<sectionclass="detail"id="FLUTE">
<h3>FLUTE</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a></span> <spanclass="element-name">FLUTE</span></div>
<divclass="block">Flute is normally played when a note block is on top of a clay block.</div>
</section>
</li>
<li>
<sectionclass="detail"id="BELL">
<h3>BELL</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a></span> <spanclass="element-name">BELL</span></div>
<divclass="block">Bell is normally played when a note block is on top of a gold block.</div>
</section>
</li>
<li>
<sectionclass="detail"id="GUITAR">
<h3>GUITAR</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a></span> <spanclass="element-name">GUITAR</span></div>
<divclass="block">Guitar is normally played when a note block is on top of a woolen block.</div>
</section>
</li>
<li>
<sectionclass="detail"id="CHIME">
<h3>CHIME</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a></span> <spanclass="element-name">CHIME</span></div>
<divclass="block">Chime is normally played when a note block is on top of a packed ice
block.</div>
</section>
</li>
<li>
<sectionclass="detail"id="XYLOPHONE">
<h3>XYLOPHONE</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a></span> <spanclass="element-name">XYLOPHONE</span></div>
<divclass="block">Xylophone is normally played when a note block is on top of a bone block.</div>
</section>
</li>
<li>
<sectionclass="detail"id="IRON_XYLOPHONE">
<h3>IRON_XYLOPHONE</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a></span> <spanclass="element-name">IRON_XYLOPHONE</span></div>
<divclass="block">Iron Xylophone is normally played when a note block is on top of a iron block.</div>
</section>
</li>
<li>
<sectionclass="detail"id="COW_BELL">
<h3>COW_BELL</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a></span> <spanclass="element-name">COW_BELL</span></div>
<divclass="block">Cow Bell is normally played when a note block is on top of a soul sand block.</div>
</section>
</li>
<li>
<sectionclass="detail"id="DIDGERIDOO">
<h3>DIDGERIDOO</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a></span> <spanclass="element-name">DIDGERIDOO</span></div>
<divclass="block">Didgeridoo is normally played when a note block is on top of a pumpkin block.</div>
</section>
</li>
<li>
<sectionclass="detail"id="BIT">
<h3>BIT</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a></span> <spanclass="element-name">BIT</span></div>
<divclass="block">Bit is normally played when a note block is on top of a emerald block.</div>
</section>
</li>
<li>
<sectionclass="detail"id="BANJO">
<h3>BANJO</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a></span> <spanclass="element-name">BANJO</span></div>
<divclass="block">Banjo is normally played when a note block is on top of a hay block.</div>
</section>
</li>
<li>
<sectionclass="detail"id="PLING">
<h3>PLING</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a></span> <spanclass="element-name">PLING</span></div>
<divclass="block">Pling is normally played when a note block is on top of a glowstone block.</div>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/ApiStatus.Experimental.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Experimental</a>
</span><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a></span> <spanclass="element-name">ZOMBIE</span></div>
<divclass="block">Zombie is normally played when a zombie head is on top of a note block.</div>
</section>
</li>
<li>
<sectionclass="detail"id="SKELETON">
<h3>SKELETON</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/ApiStatus.Experimental.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Experimental</a>
</span><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a></span> <spanclass="element-name">SKELETON</span></div>
<divclass="block">Skeleton is normally played when a skeleton skull is on top of a note block.</div>
</section>
</li>
<li>
<sectionclass="detail"id="CREEPER">
<h3>CREEPER</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/ApiStatus.Experimental.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Experimental</a>
</span><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a></span> <spanclass="element-name">CREEPER</span></div>
<divclass="block">Creeper is normally played when a creeper head is on top of a note block.</div>
</section>
</li>
<li>
<sectionclass="detail"id="DRAGON">
<h3>DRAGON</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/ApiStatus.Experimental.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Experimental</a>
</span><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a></span> <spanclass="element-name">DRAGON</span></div>
<divclass="block">Dragon is normally played when an Ender Dragon head is on top of a note block.</div>
</section>
</li>
<li>
<sectionclass="detail"id="WITHER_SKELETON">
<h3>WITHER_SKELETON</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/ApiStatus.Experimental.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Experimental</a>
</span><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a></span> <spanclass="element-name">WITHER_SKELETON</span></div>
<divclass="block">Wither skeleton is normally played when a wither skeleton skull head is on top of a note block.</div>
</section>
</li>
<li>
<sectionclass="detail"id="PIGLIN">
<h3>PIGLIN</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/ApiStatus.Experimental.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Experimental</a>
</span><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a></span> <spanclass="element-name">PIGLIN</span></div>
<divclass="block">Piglin is normally played when a piglin head is on top of a note block.</div>
</section>
</li>
<li>
<sectionclass="detail"id="CUSTOM_HEAD">
<h3>CUSTOM_HEAD</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/ApiStatus.Experimental.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Experimental</a>
</span><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a></span> <spanclass="element-name">CUSTOM_HEAD</span></div>
<divclass="block">Custom head is normally played when a player head is on top of a note block.</div>
<divclass="member-signature"><spanclass="modifiers">public static</span> <spanclass="return-type"><ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a>[]</span> <spanclass="element-name">values</span>()</div>
<divclass="block">Returns an array containing the constants of this enum class, in
the order they are declared.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>an array containing the constants of this enum class, in the order they are declared</dd>
<divclass="member-signature"><spanclass="modifiers">public static</span> <spanclass="return-type"><ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a></span> <spanclass="element-name">valueOf</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> name)</span></div>
<divclass="block">Returns the enum constant of this class with the specified name.
The string must match <i>exactly</i> an identifier used to declare an
enum constant in this class. (Extraneous whitespace characters are
not permitted.)</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>name</code> - the name of the enum constant to be returned.</dd>
<dt>Returns:</dt>
<dd>the enum constant with the specified name</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html"title="class or interface in java.lang"class="external-link">IllegalArgumentException</a></code> - if this enum class has no constant with the specified name</dd>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/NullPointerException.html"title="class or interface in java.lang"class="external-link">NullPointerException</a></code> - if the argument is null</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getType()">
<h3>getType</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html"title="class or interface in java.lang"class="external-link">@Deprecated</a>
<divclass="member-signature"><spanclass="annotations"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html"title="class or interface in java.lang"class="external-link">@Deprecated</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
</span><spanclass="modifiers">public static</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="Instrument.html"title="enum class in org.bukkit">Instrument</a></span> <spanclass="element-name">getByType</span><wbr><spanclass="parameters">(byte type)</span></div>