public interface SkullMeta extends ItemMeta
头颅.| 限定符和类型 | 方法和说明 |
|---|---|
SkullMeta |
clone() |
java.lang.String |
getOwner()
已过时。
|
OfflinePlayer |
getOwningPlayer()
获取这个头颅的主人.
|
boolean |
hasOwner()
检测这个头颅是否有主人.
|
boolean |
setOwner(java.lang.String owner)
已过时。
|
boolean |
setOwningPlayer(OfflinePlayer owner)
设置这个头颅的主人.
|
addEnchant, addItemFlags, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeEnchant, removeItemFlags, setDisplayName, setLocalizedName, setLore, setUnbreakableserialize@Deprecated java.lang.String getOwner()
setOwningPlayer(org.bukkit.OfflinePlayer).原文:Gets the owner of the skull.
boolean hasOwner()
原文:Checks to see if the skull has an owner.
@Deprecated boolean setOwner(java.lang.String owner)
setOwningPlayer(org.bukkit.OfflinePlayer).插件应该在调用这个方法之前检测hasOwner()是否返回true.
原文:Sets the owner of the skull.
Plugins should check that hasOwner() returns true before calling this plugin.
owner - 头颅的新主人OfflinePlayer getOwningPlayer()
原文:Gets the owner of the skull.
boolean setOwningPlayer(OfflinePlayer owner)
插件应该在调用这个方法之前检测hasOwner()是否返回true.
原文:Sets the owner of the skull.
Plugins should check that hasOwner() returns true before calling this plugin.
owner - 头颅的新主人