<dd><code><ahref="BlockState.html"title="interface in org.bukkit.block">BlockState</a></code>, <code><ahref="../material/Colorable.html"title="interface in org.bukkit.material">Colorable</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>
extends <ahref="TileState.html"title="interface in org.bukkit.block">TileState</a>, <ahref="../material/Colorable.html"title="interface in org.bukkit.material">Colorable</a></span></div>
<divclass="block">Represents a captured state of a bed.</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="../DyeColor.html"title="enum class in org.bukkit">DyeColor</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><ahref="#setColor(org.bukkit.DyeColor)"class="member-name-link">setColor</a><wbr>(<ahref="../DyeColor.html"title="enum class in org.bukkit">DyeColor</a> color)</code></div>
<divclass="block"><spanclass="deprecated-label">Deprecated, for removal: This API element is subject to removal in a future version.</span></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="../DyeColor.html"title="enum class in org.bukkit">DyeColor</a></span> <spanclass="element-name">getColor</span>()</div>
<divclass="block"><spanclass="descfrm-type-label">Description copied from interface: <code><ahref="../material/Colorable.html#getColor()">Colorable</a></code></span></div>
<divclass="block">Gets the color of this object.
<br>
This may be null to represent the default color of an object, if the
object has a special default color (e.g Shulkers).</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="../material/Colorable.html#getColor()">getColor</a></code> in interface <code><ahref="../material/Colorable.html"title="interface in org.bukkit.material">Colorable</a></code></dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Contract.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Contract</a>("_ -> fail")
<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://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html#forRemoval()"title="class or interface in java.lang"class="external-link">forRemoval</a>=true)
</span><spanclass="return-type">void</span> <spanclass="element-name">setColor</span><wbr><spanclass="parameters">(<ahref="../UndefinedNullability.html"title="annotation interface in org.bukkit">@UndefinedNullability</a>("not supported")
<ahref="../DyeColor.html"title="enum class in org.bukkit">DyeColor</a> color)</span></div>
<divclass="deprecation-block"><spanclass="deprecated-label">Deprecated, for removal: This API element is subject to removal in a future version.</span></div>
<divclass="block"><b>Unsupported</b></div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="../material/Colorable.html#setColor(org.bukkit.DyeColor)">setColor</a></code> in interface <code><ahref="../material/Colorable.html"title="interface in org.bukkit.material">Colorable</a></code></dd>
<dt>Parameters:</dt>
<dd><code>color</code> - The color of the object, as a DyeColor.</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/UnsupportedOperationException.html"title="class or interface in java.lang"class="external-link">UnsupportedOperationException</a></code> - not supported, set the block type</dd>