public interface Skull extends BlockState
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getOwner()
已过时。
请查阅
getOwningPlayer() . |
OfflinePlayer |
getOwningPlayer()
Get the player which owns the skull.
|
BlockFace |
getRotation()
已过时。
请使用
BlockData |
SkullType |
getSkullType()
已过时。
请检查
Material 类型 |
boolean |
hasOwner()
检测此头颅是否有主人.
|
boolean |
setOwner(java.lang.String name)
|
void |
setOwningPlayer(OfflinePlayer player)
Set the player which owns the skull.
|
void |
setRotation(BlockFace rotation)
已过时。
请使用
BlockData |
void |
setSkullType(SkullType skullType)
已过时。
请检查
Material 类型 |
getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, 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 player@Deprecated BlockFace getRotation()
BlockData
原文: Gets the rotation of the skull in the world (or facing direction if this is a wall mounted skull).
@Deprecated void setRotation(BlockFace rotation)
BlockData
原文: Sets the rotation of the skull in the world (or facing direction if this is a wall mounted skull).
rotation
- 头颅的角度@Deprecated SkullType getSkullType()
Material
类型原文: Gets the type of skull