Class SkullMetaMock
java.lang.Object
be.seeseemelk.mockbukkit.inventory.meta.ItemMetaMock
be.seeseemelk.mockbukkit.inventory.meta.SkullMetaMock
- All Implemented Interfaces:
Cloneable,org.bukkit.configuration.serialization.ConfigurationSerializable,org.bukkit.inventory.meta.Damageable,org.bukkit.inventory.meta.ItemMeta,org.bukkit.inventory.meta.Repairable,org.bukkit.inventory.meta.SkullMeta,org.bukkit.persistence.PersistentDataHolder
An
ItemMetaMock for the SkullMeta interface. The owning Player is stored via his name.
Created by SimplyBallistic on 27/10/2018-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleangetOwner()org.bukkit.profile.PlayerProfileorg.bukkit.OfflinePlayerinthashCode()booleanhasOwner()booleanvoidsetOwnerProfile(@Nullable org.bukkit.profile.PlayerProfile profile) booleansetOwningPlayer(org.bukkit.OfflinePlayer owner) Methods inherited from class be.seeseemelk.mockbukkit.inventory.meta.ItemMetaMock
addAttributeModifier, addEnchant, addItemFlags, assertHasNoLore, assertLore, assertLore, deserialize, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCustomModelData, getCustomTagContainer, getDamage, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getPersistentDataContainer, getRepairCost, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDamage, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasRepairCost, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, serialize, setAttributeModifiers, setCustomModelData, setDamage, setDisplayName, setLocalizedName, setLore, setRepairCost, setUnbreakable, setVersionMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable
serializeMethods inherited from interface org.bukkit.inventory.meta.ItemMeta
addAttributeModifier, addEnchant, addItemFlags, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCustomModelData, getCustomTagContainer, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCustomModelData, setDisplayName, setLocalizedName, setLore, setUnbreakable, setVersionMethods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
-
Constructor Details
-
SkullMetaMock
public SkullMetaMock() -
SkullMetaMock
public SkullMetaMock(org.bukkit.inventory.meta.SkullMeta meta)
-
-
Method Details
-
clone
- Specified by:
clonein interfaceorg.bukkit.inventory.meta.Damageable- Specified by:
clonein interfaceorg.bukkit.inventory.meta.ItemMeta- Specified by:
clonein interfaceorg.bukkit.inventory.meta.Repairable- Specified by:
clonein interfaceorg.bukkit.inventory.meta.SkullMeta- Overrides:
clonein classItemMetaMock
-
hashCode
public int hashCode()- Overrides:
hashCodein classItemMetaMock
-
equals
- Overrides:
equalsin classItemMetaMock
-
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
-
getOwningPlayer
public org.bukkit.OfflinePlayer getOwningPlayer()- Specified by:
getOwningPlayerin interfaceorg.bukkit.inventory.meta.SkullMeta
-
setOwningPlayer
public boolean setOwningPlayer(org.bukkit.OfflinePlayer owner) - Specified by:
setOwningPlayerin interfaceorg.bukkit.inventory.meta.SkullMeta
-
getOwnerProfile
public org.bukkit.profile.PlayerProfile getOwnerProfile()- Specified by:
getOwnerProfilein interfaceorg.bukkit.inventory.meta.SkullMeta
-
setOwnerProfile
public void setOwnerProfile(@Nullable @Nullable org.bukkit.profile.PlayerProfile profile) - Specified by:
setOwnerProfilein interfaceorg.bukkit.inventory.meta.SkullMeta
-