接口 SkullMeta
- 所有超级接口:
Cloneable,ConfigurationSerializable,ItemMeta
代表
头颅.-
方法概要
修饰符和类型方法说明clone()getOwner()已过时。获取这个头颅的主人.booleanhasOwner()检测这个头颅是否有主人.boolean已过时。booleansetOwningPlayer(OfflinePlayer owner) 设置这个头颅的主人.从接口继承的方法 org.bukkit.configuration.serialization.ConfigurationSerializable
serialize从接口继承的方法 org.bukkit.inventory.meta.ItemMeta
addEnchant, addItemFlags, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeEnchant, removeItemFlags, setDisplayName, setLocalizedName, setLore, setUnbreakable
-
方法详细资料
-
getOwner
已过时。获取这个头颅的主人.原文:Gets the owner of the skull.
- 返回:
- 头颅的主人
-
hasOwner
boolean hasOwner()检测这个头颅是否有主人.原文:Checks to see if the skull has an owner.
- 返回:
- true表示头颅有主人
-
setOwner
已过时。设置这个头颅的主人.插件应该在调用这个方法之前检测hasOwner()是否返回true.
原文:Sets the owner of the skull.
Plugins should check that hasOwner() returns true before calling this plugin.
- 参数:
owner- 头颅的新主人- 返回:
- 如果头颅主人成功被设置则为true
-
getOwningPlayer
OfflinePlayer getOwningPlayer()获取这个头颅的主人.原文:Gets the owner of the skull.
- 返回:
- 头颅的主人
-
setOwningPlayer
设置这个头颅的主人.插件应该在调用这个方法之前检测hasOwner()是否返回true.
原文:Sets the owner of the skull.
Plugins should check that hasOwner() returns true before calling this plugin.
- 参数:
owner- 头颅的新主人- 返回:
- 如果头颅主人成功被设置则为true
-
clone
SkullMeta clone()
-
setOwningPlayer(org.bukkit.OfflinePlayer).