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
Mock implementation of a
SkullMeta.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newSkullMetaMock.SkullMetaMock(@NotNull org.bukkit.inventory.meta.SkullMeta meta) Constructs a newSkullMetaMock, cloning the data from another. -
Method Summary
Modifier and TypeMethodDescription@NotNull SkullMetaMockclone()static @NotNull SkullMetaMockdeserialize(@NotNull Map<String, Object> args) Required method for Bukkit deserialization.boolean@Nullable org.bukkit.NamespacedKeygetOwner()Deprecated.org.bukkit.profile.PlayerProfileDeprecated.org.bukkit.OfflinePlayer@Nullable com.destroystokyo.paper.profile.PlayerProfileprotected StringinthashCode()booleanhasOwner()Serializes the properties of an SkullMetaMock to a HashMap.voidsetNoteBlockSound(@Nullable org.bukkit.NamespacedKey noteBlockSound) booleanDeprecated.voidsetOwnerProfile(@Nullable org.bukkit.profile.PlayerProfile profile) Deprecated.booleansetOwningPlayer(@Nullable 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, deserializeInternal, displayName, displayName, getAsComponentString, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCustomModelData, getCustomTagContainer, getDamage, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchantmentGlintOverride, getEnchants, getFood, getItemFlags, getItemName, getLocalizedName, getLore, getLoreComponents, getMaxDamage, getMaxStackSize, getPersistentDataContainer, getRarity, getRepairCost, getTool, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDamage, hasDisplayName, hasEnchant, hasEnchantmentGlintOverride, hasEnchants, hasFood, hasItemFlag, hasItemName, hasLocalizedName, hasLore, hasMaxDamage, hasMaxStackSize, hasRarity, hasRepairCost, hasTool, isFireResistant, isHideTooltip, isUnbreakable, itemName, itemName, lore, lore, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeEnchantments, removeItemFlags, setAttributeModifiers, setCustomModelData, setDamage, setDisplayName, setDisplayNameComponent, setEnchantmentGlintOverride, setFireResistant, setFood, setHideTooltip, setItemName, setLocalizedName, setLore, setLoreComponents, setMaxDamage, setMaxStackSize, setRarity, setRepairCost, setTool, setUnbreakable, setVersion, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.inventory.meta.ItemMeta
addAttributeModifier, addEnchant, addItemFlags, displayName, displayName, getAsComponentString, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCustomModelData, getCustomTagContainer, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchantmentGlintOverride, getEnchants, getFood, getItemFlags, getItemName, getLocalizedName, getLore, getLoreComponents, getMaxStackSize, getRarity, getTool, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDisplayName, hasEnchant, hasEnchantmentGlintOverride, hasEnchants, hasFood, hasItemFlag, hasItemName, hasLocalizedName, hasLore, hasMaxStackSize, hasRarity, hasTool, isFireResistant, isHideTooltip, isUnbreakable, itemName, itemName, lore, lore, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeEnchantments, removeItemFlags, setAttributeModifiers, setCustomModelData, setDisplayName, setDisplayNameComponent, setEnchantmentGlintOverride, setFireResistant, setFood, setHideTooltip, setItemName, setLocalizedName, setLore, setLoreComponents, setMaxStackSize, setRarity, setTool, setUnbreakable, setVersionMethods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
-
Constructor Details
-
SkullMetaMock
public SkullMetaMock()Constructs a newSkullMetaMock. -
SkullMetaMock
public SkullMetaMock(@NotNull @NotNull org.bukkit.inventory.meta.SkullMeta meta) Constructs a newSkullMetaMock, cloning the data from another.- Parameters:
meta- The meta to clone.
-
-
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(@Nullable @Nullable org.bukkit.OfflinePlayer owner) - Specified by:
setOwningPlayerin interfaceorg.bukkit.inventory.meta.SkullMeta
-
getOwnerProfile
Deprecated.- Specified by:
getOwnerProfilein interfaceorg.bukkit.inventory.meta.SkullMeta
-
setOwnerProfile
@Deprecated(since="1.18") public void setOwnerProfile(@Nullable @Nullable org.bukkit.profile.PlayerProfile profile) Deprecated.- Specified by:
setOwnerProfilein interfaceorg.bukkit.inventory.meta.SkullMeta
-
setNoteBlockSound
public void setNoteBlockSound(@Nullable @Nullable org.bukkit.NamespacedKey noteBlockSound) - Specified by:
setNoteBlockSoundin interfaceorg.bukkit.inventory.meta.SkullMeta
-
getNoteBlockSound
@Nullable public @Nullable org.bukkit.NamespacedKey getNoteBlockSound()- Specified by:
getNoteBlockSoundin interfaceorg.bukkit.inventory.meta.SkullMeta
-
deserialize
@NotNull public static @NotNull SkullMetaMock deserialize(@NotNull @NotNull Map<String, Object> args) Required method for Bukkit deserialization.- Parameters:
args- A serialized SkullMetaMock object in a Map<String, Object> format.- Returns:
- A new instance of the SkullMetaMock class.
-
serialize
Serializes the properties of an SkullMetaMock to a HashMap. Unimplemented properties are not present in the map.- Specified by:
serializein interfaceorg.bukkit.configuration.serialization.ConfigurationSerializable- Overrides:
serializein classItemMetaMock- Returns:
- A HashMap of String, Object pairs representing the SkullMetaMock.
-
getTypeName
- Overrides:
getTypeNamein classItemMetaMock
-