public interface SkullMeta extends ItemMeta
ItemMeta.Spigot| Modifier and Type | Method and Description |
|---|---|
SkullMeta |
clone() |
String |
getOwner()
Deprecated.
|
OfflinePlayer |
getOwningPlayer()
Gets the owner of the skull.
|
PlayerProfile |
getPlayerProfile()
If the skull has an owner, per
hasOwner(), return the owners PlayerProfile |
boolean |
hasOwner()
Checks to see if the skull has an owner.
|
boolean |
setOwner(String owner)
Deprecated.
|
boolean |
setOwningPlayer(OfflinePlayer owner)
Sets the owner of the skull.
|
void |
setPlayerProfile(PlayerProfile profile)
Sets this skull to use the supplied Player Profile, which can include textures already prefilled.
|
addAttributeModifier, addEnchant, addItemFlags, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDestroyableKeys, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getPlaceableKeys, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasPlaceableKeys, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDestroyableKeys, setDisplayName, setLocalizedName, setLore, setPlaceableKeys, setUnbreakable, setVersion, spigotserializegetPersistentDataContainer@Deprecated @Nullable String getOwner()
setOwningPlayer(org.bukkit.OfflinePlayer).boolean hasOwner()
@Deprecated boolean setOwner(@Nullable String owner)
setOwningPlayer(org.bukkit.OfflinePlayer).owner - the new owner of the skullvoid setPlayerProfile(@Nullable
PlayerProfile profile)
profile - The profile to set this Skull to use, or null to clear owner@Nullable PlayerProfile getPlayerProfile()
hasOwner(), return the owners PlayerProfile@Nullable OfflinePlayer getOwningPlayer()
boolean setOwningPlayer(@Nullable
OfflinePlayer owner)
Plugins should check that hasOwner() returns true before calling this plugin.
owner - the new owner of the skullCopyright © 2022. All rights reserved.