BlockState, Metadatable, PersistentDataHolder, TileStatepublic interface Skull extends TileState
| Modifier and Type | Method | Description | 
|---|---|---|
| String | getOwner() | Deprecated. 
 See  getOwningPlayer(). | 
| OfflinePlayer | getOwningPlayer() | Get the player which owns the skull. | 
| BlockFace | getRotation() | Deprecated. 
 use  BlockData | 
| SkullType | getSkullType() | Deprecated. 
 check  Materialinstead | 
| boolean | hasOwner() | Checks to see if the skull has an owner | 
| boolean | setOwner(String name) | Deprecated. 
 | 
| void | setOwningPlayer(OfflinePlayer player) | Set the player which owns the skull. | 
| void | setRotation(BlockFace rotation) | Deprecated. 
 use  BlockData | 
| void | setSkullType(SkullType skullType) | Deprecated. 
 check  Materialinstead | 
getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, updategetMetadata, hasMetadata, removeMetadata, setMetadatagetPersistentDataContainerboolean hasOwner()
@Deprecated @Nullable String getOwner()
getOwningPlayer().@Deprecated @Contract("null -> false") boolean setOwner(@Nullable String name)
setOwningPlayer(org.bukkit.OfflinePlayer).Involves a potentially blocking web request to acquire the profile data for the provided name.
name - the new owner of the skull@Nullable OfflinePlayer getOwningPlayer()
void setOwningPlayer(@NotNull
                     OfflinePlayer player)
player - the owning player@Deprecated @NotNull BlockFace getRotation()
BlockData@Deprecated void setRotation(@NotNull BlockFace rotation)
BlockDatarotation - the rotation of the skull@Deprecated @NotNull SkullType getSkullType()
Material instead@Deprecated @Contract("_ -> fail") void setSkullType(SkullType skullType)
Material insteadskullType - the type of skullCopyright © 2019. All rights reserved.