<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="../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="../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>
</dl>
<dlclass="notes">
<dt>All Known Subinterfaces:</dt>
<dd><code><ahref="Barrel.html"title="interface in org.bukkit.block">Barrel</a></code>, <code><ahref="BlastFurnace.html"title="interface in org.bukkit.block">BlastFurnace</a></code>, <code><ahref="BrewingStand.html"title="interface in org.bukkit.block">BrewingStand</a></code>, <code><ahref="Chest.html"title="interface in org.bukkit.block">Chest</a></code>, <code><ahref="Dispenser.html"title="interface in org.bukkit.block">Dispenser</a></code>, <code><ahref="Dropper.html"title="interface in org.bukkit.block">Dropper</a></code>, <code><ahref="Furnace.html"title="interface in org.bukkit.block">Furnace</a></code>, <code><ahref="Hopper.html"title="interface in org.bukkit.block">Hopper</a></code>, <code><ahref="ShulkerBox.html"title="interface in org.bukkit.block">ShulkerBox</a></code>, <code><ahref="Smoker.html"title="interface in org.bukkit.block">Smoker</a></code></dd>
extends <ahref="TileState.html"title="interface in org.bukkit.block">TileState</a>, <ahref="../inventory/BlockInventoryHolder.html"title="interface in org.bukkit.inventory">BlockInventoryHolder</a>, <ahref="Lockable.html"title="interface in org.bukkit.block">Lockable</a>, <ahref="../Nameable.html"title="interface in org.bukkit">Nameable</a></span></div>
<divclass="block">Represents a captured state of a container block.</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/Inventory.html"title="interface in org.bukkit.inventory">Inventory</a></code></div>
<divclass="block">Gets the inventory of the block represented by this block state.</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="../inventory/Inventory.html"title="interface in org.bukkit.inventory">Inventory</a></code></div>
<divclass="block">Gets the captured inventory snapshot of this container.</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.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.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/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/Inventory.html"title="interface in org.bukkit.inventory">Inventory</a></span> <spanclass="element-name">getInventory</span>()</div>
<divclass="block">Gets the inventory of the block represented by this block state.
<p>
If the block was changed to a different type in the meantime, the
returned inventory might no longer be valid.
<p>
If this block state is not placed this will return the captured inventory
snapshot instead.</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="../inventory/InventoryHolder.html#getInventory()">getInventory</a></code> in interface <code><ahref="../inventory/InventoryHolder.html"title="interface in org.bukkit.inventory">InventoryHolder</a></code></dd>
<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/Inventory.html"title="interface in org.bukkit.inventory">Inventory</a></span> <spanclass="element-name">getSnapshotInventory</span>()</div>
<divclass="block">Gets the captured inventory snapshot of this container.
<p>
The returned inventory is not linked to any block. Any modifications to
the returned inventory will not be applied to the block represented by
this block state up until <ahref="BlockState.html#update(boolean,boolean)"><code>BlockState.update(boolean, boolean)</code></a> has been