Package net.glowstone.inventory
Class GlowMetaSkull
java.lang.Object
net.glowstone.inventory.GlowMetaItem
net.glowstone.inventory.GlowMetaSkull
- All Implemented Interfaces:
Cloneable,org.bukkit.configuration.serialization.ConfigurationSerializable,org.bukkit.inventory.meta.ItemMeta,org.bukkit.inventory.meta.SkullMeta,org.bukkit.persistence.PersistentDataHolder
-
Constructor Summary
ConstructorsConstructorDescriptionGlowMetaSkull(org.bukkit.inventory.meta.ItemMeta meta) Creates an instance by copying from the givenItemMeta. -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.inventory.meta.SkullMetaclone()static GlowMetaSkulldeserialize(Map<String, Object> data) Deserializes an instance as specified inConfigurationSerializable.getOwner()org.bukkit.OfflinePlayercom.destroystokyo.paper.profile.PlayerProfilebooleanhasOwner()booleanisApplicable(org.bukkit.Material material) Check whether this ItemMeta can be applied to the given material.booleanbooleansetOwningPlayer(org.bukkit.OfflinePlayer owningPlayer) voidsetPlayerProfile(com.destroystokyo.paper.profile.PlayerProfile profile) Methods inherited from class net.glowstone.inventory.GlowMetaItem
addAttributeModifier, addEnchant, addItemFlags, displayName, displayName, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDestroyableKeys, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getLoreComponents, getPersistentDataContainer, getPlaceableKeys, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasPlaceableKeys, isUnbreakable, lore, lore, readNbtEnchants, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, serializeEnchants, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setLocalizedName, setLore, setLoreComponents, setPlaceableKeys, setUnbreakable, setVersion, toString, writeNbtEnchantsMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.inventory.meta.ItemMeta
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, setVersionMethods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
-
Constructor Details
-
GlowMetaSkull
public GlowMetaSkull(org.bukkit.inventory.meta.ItemMeta meta) Creates an instance by copying from the givenItemMeta. If that item is anotherSkullMetawith an owner, attempts to copy the owning player.- Parameters:
meta- theItemMetato copy
-
-
Method Details
-
deserialize
Deserializes an instance as specified inConfigurationSerializable.- Parameters:
data- a serialized instance- Returns:
- the instance as a GlowMetaSkull
-
clone
@NotNull public @NotNull org.bukkit.inventory.meta.SkullMeta clone()- Specified by:
clonein interfaceorg.bukkit.inventory.meta.ItemMeta- Specified by:
clonein interfaceorg.bukkit.inventory.meta.SkullMeta- Overrides:
clonein classGlowMetaItem
-
isApplicable
public boolean isApplicable(org.bukkit.Material material) Description copied from class:GlowMetaItemCheck whether this ItemMeta can be applied to the given material.- Overrides:
isApplicablein classGlowMetaItem- Parameters:
material- The Material.- Returns:
- True if this ItemMeta is applicable.
-
serialize
- Specified by:
serializein interfaceorg.bukkit.configuration.serialization.ConfigurationSerializable- Overrides:
serializein classGlowMetaItem
-
getOwner
- Specified by:
getOwnerin interfaceorg.bukkit.inventory.meta.SkullMeta
-
hasOwner
public boolean hasOwner()- Specified by:
hasOwnerin interfaceorg.bukkit.inventory.meta.SkullMeta
-
setOwner
- Specified by:
setOwnerin interfaceorg.bukkit.inventory.meta.SkullMeta
-
setPlayerProfile
public void setPlayerProfile(com.destroystokyo.paper.profile.PlayerProfile profile) - Specified by:
setPlayerProfilein interfaceorg.bukkit.inventory.meta.SkullMeta
-
getPlayerProfile
public com.destroystokyo.paper.profile.PlayerProfile getPlayerProfile()- Specified by:
getPlayerProfilein interfaceorg.bukkit.inventory.meta.SkullMeta
-
getOwningPlayer
public org.bukkit.OfflinePlayer getOwningPlayer()- Specified by:
getOwningPlayerin interfaceorg.bukkit.inventory.meta.SkullMeta
-
setOwningPlayer
public boolean setOwningPlayer(org.bukkit.OfflinePlayer owningPlayer) When this returns false, it may still succeed asynchronously.
- Specified by:
setOwningPlayerin interfaceorg.bukkit.inventory.meta.SkullMeta
-