<dd><code><ahref="Barrel.html"title="interface in org.bukkit.block">Barrel</a></code>, <code><ahref="Beacon.html"title="interface in org.bukkit.block">Beacon</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="Container.html"title="interface in org.bukkit.block">Container</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>
<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="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></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#setLock(java.lang.String)"class="member-name-link">setLock</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="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> key)</code></div>
<divclass="block">Checks if the container has a valid (non empty) key.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>true if the key is valid.</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getLock()">
<h3>getLock</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="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></span> <spanclass="element-name">getLock</span>()</div>
<divclass="block">Gets the key needed to access the container.</div>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">setLock</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="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> key)</span></div>
<divclass="block">Sets the key required to access this container. Set to null (or empty
string) to remove key.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>key</code> - the key required to access the container.</dd>