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.BlockDataMeta
,org.bukkit.inventory.meta.Damageable
,org.bukkit.inventory.meta.ItemMeta
,org.bukkit.inventory.meta.Repairable
,org.bukkit.inventory.meta.SkullMeta
,org.bukkit.persistence.PersistentDataHolder
-
Constructor Summary
ConstructorDescriptionGlowMetaSkull
(org.bukkit.inventory.meta.ItemMeta meta) Creates an instance by copying from the givenItemMeta
. -
Method Summary
Modifier and TypeMethodDescription@NotNull GlowMetaSkull
clone()
static GlowMetaSkull
deserialize
(Map<String, Object> data) Deserializes an instance as specified inConfigurationSerializable
.getOwner()
@Nullable org.bukkit.profile.PlayerProfile
org.bukkit.OfflinePlayer
com.destroystokyo.paper.profile.PlayerProfile
boolean
hasOwner()
boolean
isApplicable
(org.bukkit.Material material) Check whether this ItemMeta can be applied to the given material.boolean
void
setOwnerProfile
(@Nullable org.bukkit.profile.PlayerProfile profile) boolean
setOwningPlayer
(org.bukkit.OfflinePlayer owningPlayer) void
setPlayerProfile
(com.destroystokyo.paper.profile.PlayerProfile profile) Methods inherited from class net.glowstone.inventory.GlowMetaItem
addAttributeModifier, addEnchant, addItemFlags, displayName, displayName, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getBlockData, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDamage, getDestroyableKeys, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getLoreComponents, getPersistentDataContainer, getPlaceableKeys, getRepairCost, hasAttributeModifiers, hasBlockData, hasConflictingEnchant, hasCustomModelData, hasDamage, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasPlaceableKeys, hasRepairCost, isUnbreakable, lore, lore, readNbtEnchants, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, serializeEnchants, setAttributeModifiers, setBlockData, setCanDestroy, setCanPlaceOn, setCustomModelData, setDamage, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setLocalizedName, setLore, setLoreComponents, setPlaceableKeys, setRepairCost, setUnbreakable, setVersion, toString, writeNbtEnchants
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.bukkit.inventory.meta.ItemMeta
addAttributeModifier, addEnchant, addItemFlags, displayName, displayName, getAsString, 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
Methods 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 anotherSkullMeta
with an owner, attempts to copy the owning player.- Parameters:
meta
- theItemMeta
to copy
-
-
Method Details
-
deserialize
Deserializes an instance as specified inConfigurationSerializable
.- Parameters:
data
- a serialized instance- Returns:
- the instance as a GlowMetaSkull
-
clone
- Specified by:
clone
in interfaceorg.bukkit.inventory.meta.Damageable
- Specified by:
clone
in interfaceorg.bukkit.inventory.meta.ItemMeta
- Specified by:
clone
in interfaceorg.bukkit.inventory.meta.Repairable
- Specified by:
clone
in interfaceorg.bukkit.inventory.meta.SkullMeta
- Overrides:
clone
in classGlowMetaItem
-
isApplicable
public boolean isApplicable(org.bukkit.Material material) Description copied from class:GlowMetaItem
Check whether this ItemMeta can be applied to the given material.- Overrides:
isApplicable
in classGlowMetaItem
- Parameters:
material
- The Material.- Returns:
- True if this ItemMeta is applicable.
-
serialize
- Specified by:
serialize
in interfaceorg.bukkit.configuration.serialization.ConfigurationSerializable
- Overrides:
serialize
in classGlowMetaItem
-
getOwner
- Specified by:
getOwner
in interfaceorg.bukkit.inventory.meta.SkullMeta
-
hasOwner
public boolean hasOwner()- Specified by:
hasOwner
in interfaceorg.bukkit.inventory.meta.SkullMeta
-
setOwner
- Specified by:
setOwner
in interfaceorg.bukkit.inventory.meta.SkullMeta
-
setPlayerProfile
public void setPlayerProfile(com.destroystokyo.paper.profile.PlayerProfile profile) - Specified by:
setPlayerProfile
in interfaceorg.bukkit.inventory.meta.SkullMeta
-
getPlayerProfile
public com.destroystokyo.paper.profile.PlayerProfile getPlayerProfile()- Specified by:
getPlayerProfile
in interfaceorg.bukkit.inventory.meta.SkullMeta
-
getOwningPlayer
public org.bukkit.OfflinePlayer getOwningPlayer()- Specified by:
getOwningPlayer
in interfaceorg.bukkit.inventory.meta.SkullMeta
-
setOwningPlayer
public boolean setOwningPlayer(org.bukkit.OfflinePlayer owningPlayer) When this returns false, it may still succeed asynchronously.
- Specified by:
setOwningPlayer
in interfaceorg.bukkit.inventory.meta.SkullMeta
-
getOwnerProfile
public @Nullable org.bukkit.profile.PlayerProfile getOwnerProfile()- Specified by:
getOwnerProfile
in interfaceorg.bukkit.inventory.meta.SkullMeta
-
setOwnerProfile
public void setOwnerProfile(@Nullable org.bukkit.profile.PlayerProfile profile) - Specified by:
setOwnerProfile
in interfaceorg.bukkit.inventory.meta.SkullMeta
-