<dd><code><ahref="../inventory/BlockInventoryHolder.html"title="interface in org.bukkit.inventory">BlockInventoryHolder</a></code>, <code><ahref="BlockState.html"title="interface in org.bukkit.block">BlockState</a></code>, <code><ahref="Container.html"title="interface in org.bukkit.block">Container</a></code>, <code><ahref="../inventory/InventoryHolder.html"title="interface in org.bukkit.inventory">InventoryHolder</a></code>, <code><ahref="Lockable.html"title="interface in org.bukkit.block">Lockable</a></code>, <code><ahref="../loot/Lootable.html"title="interface in org.bukkit.loot">Lootable</a></code>, <code><ahref="../../../com/destroystokyo/paper/loottable/LootableBlockInventory.html"title="interface in com.destroystokyo.paper.loottable">LootableBlockInventory</a></code>, <code><ahref="../../../com/destroystokyo/paper/loottable/LootableInventory.html"title="interface in com.destroystokyo.paper.loottable">LootableInventory</a></code>, <code><ahref="../metadata/Metadatable.html"title="interface in org.bukkit.metadata">Metadatable</a></code>, <code><ahref="../Nameable.html"title="interface in org.bukkit">Nameable</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>
extends <ahref="Container.html"title="interface in org.bukkit.block">Container</a>, <ahref="../Nameable.html"title="interface in org.bukkit">Nameable</a>, <ahref="../../../com/destroystokyo/paper/loottable/LootableBlockInventory.html"title="interface in com.destroystokyo.paper.loottable">LootableBlockInventory</a></span></div>
<divclass="block">Represents a captured state of a dispenser.</div>
<divclass="block">Attempts to dispense the contents of the dispenser.</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/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="../projectiles/BlockProjectileSource.html"title="interface in org.bukkit.projectiles">BlockProjectileSource</a></code></div>
<divclass="block">Gets the BlockProjectileSource object for the dispenser.</div>
</div>
</div>
</div>
</div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-org.bukkit.inventory.BlockInventoryHolder">Methods inherited from interface org.bukkit.inventory.<ahref="../inventory/BlockInventoryHolder.html"title="interface in org.bukkit.inventory">BlockInventoryHolder</a></h3>
<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.block.Container">Methods inherited from interface org.bukkit.block.<ahref="Container.html"title="interface in org.bukkit.block">Container</a></h3>
<h3id="methods-inherited-from-class-org.bukkit.block.Lockable">Methods inherited from interface org.bukkit.block.<ahref="Lockable.html"title="interface in org.bukkit.block">Lockable</a></h3>
<h3id="methods-inherited-from-class-org.bukkit.loot.Lootable">Methods inherited from interface org.bukkit.loot.<ahref="../loot/Lootable.html"title="interface in org.bukkit.loot">Lootable</a></h3>
<h3id="methods-inherited-from-class-com.destroystokyo.paper.loottable.LootableBlockInventory">Methods inherited from interface com.destroystokyo.paper.loottable.<ahref="../../../com/destroystokyo/paper/loottable/LootableBlockInventory.html"title="interface in com.destroystokyo.paper.loottable">LootableBlockInventory</a></h3>
<h3id="methods-inherited-from-class-com.destroystokyo.paper.loottable.LootableInventory">Methods inherited from interface com.destroystokyo.paper.loottable.<ahref="../../../com/destroystokyo/paper/loottable/LootableInventory.html"title="interface in com.destroystokyo.paper.loottable">LootableInventory</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.Nameable">Methods inherited from interface org.bukkit.<ahref="../Nameable.html"title="interface in org.bukkit">Nameable</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/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
</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="../projectiles/BlockProjectileSource.html"title="interface in org.bukkit.projectiles">BlockProjectileSource</a></span> <spanclass="element-name">getBlockProjectileSource</span>()</div>
<divclass="block">Gets the BlockProjectileSource object for the dispenser.
<p>
If the block represented by this state is no longer a dispenser, this
will return null.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>a BlockProjectileSource if valid, otherwise null</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>
<divclass="block">Attempts to dispense the contents of the dispenser.
<p>
If the block represented by this state is no longer a dispenser, this
will return false.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>true if successful, otherwise false</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>