<dd><code><ahref="BlockState.html"title="interface in org.bukkit.block">BlockState</a></code>, <code><ahref="../metadata/Metadatable.html"title="interface in org.bukkit.metadata">Metadatable</a></code>, <code><ahref="../persistence/PersistentDataHolder.html"title="interface in org.bukkit.persistence">PersistentDataHolder</a></code>, <code><ahref="TileState.html"title="interface in org.bukkit.block">TileState</a></code></dd>
<divclass="block">Stops the jukebox playing and ejects the current record.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../Material.html"title="enum class in org.bukkit">Material</a></code></div>
<divclass="block">Gets the record inserted into the jukebox.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#setPlaying(org.bukkit.Material)"class="member-name-link">setPlaying</a><wbr>(<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="../Material.html"title="enum class in org.bukkit">Material</a> record)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#setRecord(org.bukkit.inventory.ItemStack)"class="member-name-link">setRecord</a><wbr>(<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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a> record)</code></div>
<divclass="block">Stops the jukebox playing without ejecting the record.</div>
</div>
</div>
</div>
</div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-org.bukkit.block.BlockState">Methods inherited from interface org.bukkit.block.<ahref="BlockState.html"title="interface in org.bukkit.block">BlockState</a></h3>
<h3id="methods-inherited-from-class-org.bukkit.metadata.Metadatable">Methods inherited from interface org.bukkit.metadata.<ahref="../metadata/Metadatable.html"title="interface in org.bukkit.metadata">Metadatable</a></h3>
<h3id="methods-inherited-from-class-org.bukkit.block.TileState">Methods inherited from interface org.bukkit.block.<ahref="TileState.html"title="interface in org.bukkit.block">TileState</a></h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../Material.html"title="enum class in org.bukkit">Material</a></span> <spanclass="element-name">getPlaying</span>()</div>
<divclass="block">Gets the record inserted into the jukebox.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>The record Material, or AIR if none is inserted</dd>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">setPlaying</span><wbr><spanclass="parameters">(<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="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="../Material.html"title="enum class in org.bukkit">Material</a> record)</span></div>
<divclass="block">Sets the record being played.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>record</code> - The record Material, or null/AIR to stop playing</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getRecord()">
<h3>getRecord</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a></span> <spanclass="element-name">getRecord</span>()</div>
<divclass="block">Gets the record item inserted into the jukebox.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>a copy of the inserted record, or an air stack if none</dd>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">setRecord</span><wbr><spanclass="parameters">(<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="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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a> record)</span></div>
<divclass="block">Sets the record being played.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>record</code> - the record to insert or null/AIR to empty</dd>
<divclass="block">Stops the jukebox playing and ejects the current record.
<p>
If the block represented by this state is no longer a jukebox, this will
do nothing and return false.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>True if a record was ejected; false if there was none playing</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalStateException.html"title="class or interface in java.lang"class="external-link">IllegalStateException</a></code> - if this block state is not placed</dd>