Class LeatherArmorMetaMock

java.lang.Object
be.seeseemelk.mockbukkit.inventory.meta.ItemMetaMock
be.seeseemelk.mockbukkit.inventory.meta.LeatherArmorMetaMock
All Implemented Interfaces:
Cloneable, org.bukkit.configuration.serialization.ConfigurationSerializable, org.bukkit.inventory.meta.Damageable, org.bukkit.inventory.meta.ItemMeta, org.bukkit.inventory.meta.LeatherArmorMeta, org.bukkit.inventory.meta.Repairable, org.bukkit.persistence.PersistentDataHolder

public class LeatherArmorMetaMock extends ItemMetaMock implements org.bukkit.inventory.meta.LeatherArmorMeta
Mock implementation of an LeatherArmorMeta.
See Also:
  • Constructor Details

    • LeatherArmorMetaMock

      public LeatherArmorMetaMock()
      Constructs a new LeatherArmorMetaMock.
    • LeatherArmorMetaMock

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

    • clone

      @NotNull public @NotNull LeatherArmorMetaMock 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.LeatherArmorMeta
      Specified by:
      clone in interface org.bukkit.inventory.meta.Repairable
      Overrides:
      clone in class ItemMetaMock
    • isDyed

      public boolean isDyed()
      Specified by:
      isDyed in interface org.bukkit.inventory.meta.LeatherArmorMeta
    • hashCode

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

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

      @NotNull public @NotNull org.bukkit.Color getColor()
      Specified by:
      getColor in interface org.bukkit.inventory.meta.LeatherArmorMeta
    • setColor

      public void setColor(@Nullable @Nullable org.bukkit.Color color)
      Specified by:
      setColor in interface org.bukkit.inventory.meta.LeatherArmorMeta
    • deserialize

      @NotNull public static @NotNull LeatherArmorMetaMock deserialize(@NotNull @NotNull Map<String,Object> args)
      Required method for Bukkit deserialization.
      Parameters:
      args - A serialized LeatherArmorMetaMock object in a Map<String, Object> format.
      Returns:
      A new instance of the LeatherArmorMetaMock class.
    • serialize

      @NotNull public @NotNull Map<String,Object> serialize()
      Serializes the properties of an LeatherArmorMetaMock 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 LeatherArmorMetaMock.
    • getTypeName

      protected String getTypeName()
      Overrides:
      getTypeName in class ItemMetaMock