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()Deprecated.org.bukkit.profile.PlayerProfileDeprecated.org.bukkit.OfflinePlayer@Nullable com.destroystokyo.paper.profile.PlayerProfileinthashCode()booleanhasOwner()booleanDeprecated.voidsetOwnerProfile(@Nullable org.bukkit.profile.PlayerProfile profile) Deprecated.booleansetOwningPlayer(org.bukkit.OfflinePlayer owner) voidsetPlayerProfile(@Nullable com.destroystokyo.paper.profile.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, 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, 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, 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
Deprecated.- Specified by:
getOwnerin interfaceorg.bukkit.inventory.meta.SkullMeta
-
hasOwner
public boolean hasOwner()- Specified by:
hasOwnerin interfaceorg.bukkit.inventory.meta.SkullMeta
-
setOwner
Deprecated.- Specified by:
setOwnerin interfaceorg.bukkit.inventory.meta.SkullMeta
-
setPlayerProfile
public void setPlayerProfile(@Nullable com.destroystokyo.paper.profile.PlayerProfile profile) - Specified by:
setPlayerProfilein interfaceorg.bukkit.inventory.meta.SkullMeta
-
getPlayerProfile
public @Nullable 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 owner) - Specified by:
setOwningPlayerin interfaceorg.bukkit.inventory.meta.SkullMeta
-
getOwnerProfile
Deprecated.- Specified by:
getOwnerProfilein interfaceorg.bukkit.inventory.meta.SkullMeta
-
setOwnerProfile
@Deprecated public void setOwnerProfile(@Nullable @Nullable org.bukkit.profile.PlayerProfile profile) Deprecated.- Specified by:
setOwnerProfilein interfaceorg.bukkit.inventory.meta.SkullMeta
-