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

public class SkullMetaMock extends ItemMetaMock implements org.bukkit.inventory.meta.SkullMeta
Mock implementation of a SkullMeta.
See Also:
  • Constructor Details

    • SkullMetaMock

      public SkullMetaMock()
      Constructs a new SkullMetaMock.
    • SkullMetaMock

      public SkullMetaMock(@NotNull @NotNull org.bukkit.inventory.meta.SkullMeta meta)
      Constructs a new SkullMetaMock, cloning the data from another.
      Parameters:
      meta - The meta to clone.
  • Method Details

    • clone

      @NotNull public @NotNull SkullMetaMock clone()
      Specified by:
      clone in interface org.bukkit.inventory.meta.Damageable
      Specified by:
      clone in interface org.bukkit.inventory.meta.ItemMeta
      Specified by:
      clone in interface org.bukkit.inventory.meta.Repairable
      Specified by:
      clone in interface org.bukkit.inventory.meta.SkullMeta
      Overrides:
      clone in class ItemMetaMock
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class ItemMetaMock
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class ItemMetaMock
    • getOwner

      @Deprecated(since="1.13") public String getOwner()
      Deprecated.
      Specified by:
      getOwner in interface org.bukkit.inventory.meta.SkullMeta
    • hasOwner

      public boolean hasOwner()
      Specified by:
      hasOwner in interface org.bukkit.inventory.meta.SkullMeta
    • setOwner

      @Deprecated(since="1.13") public boolean setOwner(String name)
      Deprecated.
      Specified by:
      setOwner in interface org.bukkit.inventory.meta.SkullMeta
    • setPlayerProfile

      public void setPlayerProfile(@Nullable com.destroystokyo.paper.profile.PlayerProfile profile)
      Specified by:
      setPlayerProfile in interface org.bukkit.inventory.meta.SkullMeta
    • getPlayerProfile

      public @Nullable com.destroystokyo.paper.profile.PlayerProfile getPlayerProfile()
      Specified by:
      getPlayerProfile in interface org.bukkit.inventory.meta.SkullMeta
    • getOwningPlayer

      public org.bukkit.OfflinePlayer getOwningPlayer()
      Specified by:
      getOwningPlayer in interface org.bukkit.inventory.meta.SkullMeta
    • setOwningPlayer

      public boolean setOwningPlayer(@Nullable @Nullable org.bukkit.OfflinePlayer owner)
      Specified by:
      setOwningPlayer in interface org.bukkit.inventory.meta.SkullMeta
    • getOwnerProfile

      @Deprecated(since="1.18") public org.bukkit.profile.PlayerProfile getOwnerProfile()
      Deprecated.
      Specified by:
      getOwnerProfile in interface org.bukkit.inventory.meta.SkullMeta
    • setOwnerProfile

      @Deprecated(since="1.18") public void setOwnerProfile(@Nullable @Nullable org.bukkit.profile.PlayerProfile profile)
      Deprecated.
      Specified by:
      setOwnerProfile in interface org.bukkit.inventory.meta.SkullMeta
    • setNoteBlockSound

      public void setNoteBlockSound(@Nullable @Nullable org.bukkit.NamespacedKey noteBlockSound)
      Specified by:
      setNoteBlockSound in interface org.bukkit.inventory.meta.SkullMeta
    • getNoteBlockSound

      @Nullable public @Nullable org.bukkit.NamespacedKey getNoteBlockSound()
      Specified by:
      getNoteBlockSound in interface org.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

      @NotNull public @NotNull Map<String,Object> serialize()
      Serializes the properties of an SkullMetaMock to a HashMap. Unimplemented properties are not present in the map.
      Specified by:
      serialize in interface org.bukkit.configuration.serialization.ConfigurationSerializable
      Overrides:
      serialize in class ItemMetaMock
      Returns:
      A HashMap of String, Object pairs representing the SkullMetaMock.
    • getTypeName

      protected String getTypeName()
      Overrides:
      getTypeName in class ItemMetaMock