Class SkullMetaMock
java.lang.Object
be.seeseemelk.mockbukkit.inventory.meta.ItemMetaMock
be.seeseemelk.mockbukkit.inventory.meta.SkullMetaMock
- All Implemented Interfaces:
Cloneable
,ConfigurationSerializable
,Damageable
,ItemMeta
,Repairable
,SkullMeta
,PersistentDataHolder
Mock implementation of a
SkullMeta
.- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs a newSkullMetaMock
.SkullMetaMock
(@NotNull SkullMeta meta) Constructs a newSkullMetaMock
, cloning the data from another. -
Method Summary
Modifier and TypeMethodDescription@NotNull SkullMetaMock
clone()
boolean
@Nullable NamespacedKey
getOwner()
Deprecated.Deprecated.@Nullable PlayerProfile
int
hashCode()
boolean
hasOwner()
void
setNoteBlockSound
(@Nullable NamespacedKey noteBlockSound) boolean
Deprecated.void
setOwnerProfile
(@Nullable PlayerProfile profile) Deprecated.boolean
setOwningPlayer
(@NotNull OfflinePlayer owner) void
setPlayerProfile
(@Nullable PlayerProfile profile) Methods inherited from class be.seeseemelk.mockbukkit.inventory.meta.ItemMetaMock
addAttributeModifier, addEnchant, addItemFlags, assertComponentLore, assertHasNoLore, assertLore, assertLore, deserialize, displayName, displayName, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDamage, getDestroyableKeys, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getLoreComponents, getPersistentDataContainer, getPlaceableKeys, getRepairCost, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDamage, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasPlaceableKeys, hasRepairCost, isUnbreakable, lore, lore, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, serialize, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDamage, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setLocalizedName, setLore, setLoreComponents, setPlaceableKeys, setRepairCost, setUnbreakable, setVersion
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
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
-
SkullMetaMock
public SkullMetaMock()Constructs a newSkullMetaMock
. -
SkullMetaMock
Constructs a newSkullMetaMock
, cloning the data from another.- Parameters:
meta
- The meta to clone.
-
-
Method Details
-
clone
- Specified by:
clone
in interfaceDamageable
- Specified by:
clone
in interfaceItemMeta
- Specified by:
clone
in interfaceRepairable
- Specified by:
clone
in interfaceSkullMeta
- Overrides:
clone
in classItemMetaMock
-
hashCode
public int hashCode()- Overrides:
hashCode
in classItemMetaMock
-
equals
- Overrides:
equals
in classItemMetaMock
-
getOwner
Deprecated. -
hasOwner
public boolean hasOwner() -
setOwner
Deprecated. -
setPlayerProfile
- Specified by:
setPlayerProfile
in interfaceSkullMeta
-
getPlayerProfile
- Specified by:
getPlayerProfile
in interfaceSkullMeta
-
getOwningPlayer
- Specified by:
getOwningPlayer
in interfaceSkullMeta
-
setOwningPlayer
- Specified by:
setOwningPlayer
in interfaceSkullMeta
-
getOwnerProfile
Deprecated.- Specified by:
getOwnerProfile
in interfaceSkullMeta
-
setOwnerProfile
Deprecated.- Specified by:
setOwnerProfile
in interfaceSkullMeta
-
setNoteBlockSound
- Specified by:
setNoteBlockSound
in interfaceSkullMeta
-
getNoteBlockSound
- Specified by:
getNoteBlockSound
in interfaceSkullMeta
-