public interface Skull extends BlockState
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getOwner()
已过时。
请查阅
getOwningPlayer() . |
OfflinePlayer |
getOwningPlayer()
Get the player which owns the skull.
|
BlockFace |
getRotation()
获取这个头颅在世界的角度.
|
SkullType |
getSkullType()
获取头颅的类型.
|
boolean |
hasOwner()
检测此头颅是否有主人.
|
boolean |
setOwner(java.lang.String name)
|
void |
setOwningPlayer(OfflinePlayer player)
Set the player which owns the skull.
|
void |
setRotation(BlockFace rotation)
设置这个头颅在世界的角度.
|
void |
setSkullType(SkullType skullType)
设置头颅的类型.
|
getBlock, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getTypeId, getWorld, getX, getY, getZ, isPlaced, setData, setRawData, setType, setTypeId, update, update, update
getMetadata, hasMetadata, removeMetadata, setMetadata
boolean hasOwner()
原文: Checks to see if the skull has an owner
@Deprecated java.lang.String getOwner()
getOwningPlayer()
.原文: Gets the owner of the skull, if one exists
@Deprecated boolean setOwner(java.lang.String name)
提供的名称的配置文件数据涉及一个存在阻塞的Web请求.
原文: Sets the owner of the skull
Involves a potentially blocking web request to acquire the profile data for the provided name.
name
- 新的头颅主人的名字OfflinePlayer getOwningPlayer()
void setOwningPlayer(OfflinePlayer player)
player
- the owning playerBlockFace getRotation()
原文: Gets the rotation of the skull in the world
void setRotation(BlockFace rotation)
原文: Sets the rotation of the skull in the world
rotation
- 头颅的角度SkullType getSkullType()
原文: Gets the type of skull
void setSkullType(SkullType skullType)
原文: Sets the type of skull
skullType
- 头颅的类型