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