<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="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><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="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-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><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="../profile/PlayerProfile.html"title="interface in org.bukkit.profile">PlayerProfile</a></code></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/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="../OfflinePlayer.html"title="interface in org.bukkit">OfflinePlayer</a></code></div>
<divclass="block">If the skull has an owner, per <ahref="#hasOwner()"><code>hasOwner()</code></a>, return the owners <ahref="../../../com/destroystokyo/paper/profile/PlayerProfile.html"title="interface in com.destroystokyo.paper.profile"><code>PlayerProfile</code></a></div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><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="BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a></code></div>
<divclass="deprecation-comment">use <ahref="data/BlockData.html"title="interface in org.bukkit.block.data"><code>BlockData</code></a></div>
</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><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="../SkullType.html"title="enum class in org.bukkit">SkullType</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="#setOwner(java.lang.String)"class="member-name-link">setOwner</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> name)</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><ahref="#setOwnerProfile(org.bukkit.profile.PlayerProfile)"class="member-name-link">setOwnerProfile</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="../profile/PlayerProfile.html"title="interface in org.bukkit.profile">PlayerProfile</a> profile)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#setOwningPlayer(org.bukkit.OfflinePlayer)"class="member-name-link">setOwningPlayer</a><wbr>(<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="../OfflinePlayer.html"title="interface in org.bukkit">OfflinePlayer</a> player)</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="#setRotation(org.bukkit.block.BlockFace)"class="member-name-link">setRotation</a><wbr>(<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="BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a> rotation)</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><ahref="#setSkullType(org.bukkit.SkullType)"class="member-name-link">setSkullType</a><wbr>(<ahref="../SkullType.html"title="enum class in org.bukkit">SkullType</a> skullType)</code></div>
<divclass="deprecation-comment">check <ahref="../Material.html"title="enum class in org.bukkit"><code>Material</code></a> instead</div>
</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="block">Checks to see if the skull has an owner</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>true if the skull has an owner</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getOwner()">
<h3>getOwner</h3>
<divclass="member-signature"><spanclass="annotations"><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://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="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">getOwner</span>()</div>
<divclass="member-signature"><spanclass="annotations"><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://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>("null -> false")
</span><spanclass="return-type">boolean</span> <spanclass="element-name">setOwner</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> name)</span></div>
Involves a potentially blocking web request to acquire the profile data for
the provided name.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>name</code> - the new owner of the skull</dd>
<dt>Returns:</dt>
<dd>true if the owner was successfully set</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getOwningPlayer()">
<h3>getOwningPlayer</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="../OfflinePlayer.html"title="interface in org.bukkit">OfflinePlayer</a></span> <spanclass="element-name">getOwningPlayer</span>()</div>
<divclass="block">Get the player which owns the skull. This player may appear as the
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">setOwningPlayer</span><wbr><spanclass="parameters">(<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://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="../OfflinePlayer.html"title="interface in org.bukkit">OfflinePlayer</a> player)</span></div>
<divclass="block">Set the player which owns the skull. This player may appear as the
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">setPlayerProfile</span><wbr><spanclass="parameters">(<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="../../../com/destroystokyo/paper/profile/PlayerProfile.html"title="interface in com.destroystokyo.paper.profile">PlayerProfile</a> profile)</span></div>
<divclass="block">Sets this skull to use the supplied Player Profile, which can include textures already prefilled.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>profile</code> - The profile to set this Skull to use, may not be null</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getPlayerProfile()">
<h3>getPlayerProfile</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="../../../com/destroystokyo/paper/profile/PlayerProfile.html"title="interface in com.destroystokyo.paper.profile">PlayerProfile</a></span> <spanclass="element-name">getPlayerProfile</span>()</div>
<divclass="block">If the skull has an owner, per <ahref="#hasOwner()"><code>hasOwner()</code></a>, return the owners <ahref="../../../com/destroystokyo/paper/profile/PlayerProfile.html"title="interface in com.destroystokyo.paper.profile"><code>PlayerProfile</code></a></div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>The profile of the owner, if set</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getOwnerProfile()">
<h3>getOwnerProfile</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>
<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>
</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="../profile/PlayerProfile.html"title="interface in org.bukkit.profile">PlayerProfile</a></span> <spanclass="element-name">getOwnerProfile</span>()</div>
<divclass="member-signature"><spanclass="annotations"><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>
</span><spanclass="return-type">void</span> <spanclass="element-name">setOwnerProfile</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="../profile/PlayerProfile.html"title="interface in org.bukkit.profile">PlayerProfile</a> profile)</span></div>
<divclass="block">Sets the profile of the player who owns the skull. This player profile
may appear as the texture depending on skull type.
<p>
The profile must contain both a unique id and a skin texture. If either
of these is missing, the profile must contain a name by which the server
will then attempt to look up the unique id and skin texture.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>profile</code> - the profile of the owning player</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html"title="class or interface in java.lang"class="external-link">IllegalArgumentException</a></code> - if the profile does not contain the
necessary information</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getRotation()">
<h3>getRotation</h3>
<divclass="member-signature"><spanclass="annotations"><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://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="BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a></span> <spanclass="element-name">getRotation</span>()</div>
<divclass="member-signature"><spanclass="annotations"><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>
</span><spanclass="return-type">void</span> <spanclass="element-name">setRotation</span><wbr><spanclass="parameters">(<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://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="BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a> rotation)</span></div>
<divclass="deprecation-comment">use <ahref="data/BlockData.html"title="interface in org.bukkit.block.data"><code>BlockData</code></a></div>
</div>
<divclass="block">Sets the rotation of the skull in the world (or facing direction if this
is a wall mounted skull).</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>rotation</code> - the rotation of the skull</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getSkullType()">
<h3>getSkullType</h3>
<divclass="member-signature"><spanclass="annotations"><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://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="../SkullType.html"title="enum class in org.bukkit">SkullType</a></span> <spanclass="element-name">getSkullType</span>()</div>
<divclass="member-signature"><spanclass="annotations"><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://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")
</span><spanclass="return-type">void</span> <spanclass="element-name">setSkullType</span><wbr><spanclass="parameters">(<ahref="../SkullType.html"title="enum class in org.bukkit">SkullType</a> skullType)</span></div>