public interface Skull extends BlockState
| Modifier and Type | Method and Description | 
|---|---|
String | 
getOwner()
Gets the owner of the skull, if one exists 
 | 
BlockFace | 
getRotation()
Gets the rotation of the skull in the world 
 | 
SkullType | 
getSkullType()
Gets the type of skull 
 | 
boolean | 
hasOwner()
Checks to see if the skull has an owner 
 | 
boolean | 
setOwner(String name)
Sets the owner of the skull 
 | 
void | 
setRotation(BlockFace rotation)
Sets the rotation of the skull in the world 
 | 
void | 
setSkullType(SkullType skullType)
Sets the type of skull 
 | 
getBlock, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getTypeId, getWorld, getX, getY, getZ, isPlaced, setData, setRawData, setType, setTypeId, update, update, updategetMetadata, hasMetadata, removeMetadata, setMetadataboolean hasOwner()
String getOwner()
boolean setOwner(String name)
Involves a potentially blocking web request to acquire the profile data for the provided name.
name - the new owner of the skullBlockFace getRotation()
void setRotation(BlockFace rotation)
rotation - the rotation of the skullSkullType getSkullType()
void setSkullType(SkullType skullType)
skullType - the type of skullCopyright © 2022. All rights reserved.