Class ArmorMetaMock

java.lang.Object
be.seeseemelk.mockbukkit.inventory.meta.ItemMetaMock
be.seeseemelk.mockbukkit.inventory.meta.ArmorMetaMock
All Implemented Interfaces:
io.papermc.paper.persistence.PersistentDataViewHolder, Cloneable, org.bukkit.configuration.serialization.ConfigurationSerializable, org.bukkit.inventory.meta.ArmorMeta, org.bukkit.inventory.meta.Damageable, org.bukkit.inventory.meta.ItemMeta, org.bukkit.inventory.meta.Repairable, org.bukkit.persistence.PersistentDataHolder
Direct Known Subclasses:
ColorableArmorMetaMock

public class ArmorMetaMock extends ItemMetaMock implements org.bukkit.inventory.meta.ArmorMeta
  • Constructor Details

    • ArmorMetaMock

      public ArmorMetaMock()
  • Method Details

    • hasTrim

      public boolean hasTrim()
      Specified by:
      hasTrim in interface org.bukkit.inventory.meta.ArmorMeta
    • setTrim

      public void setTrim(@Nullable @Nullable org.bukkit.inventory.meta.trim.ArmorTrim trim)
      Specified by:
      setTrim in interface org.bukkit.inventory.meta.ArmorMeta
    • getTrim

      @Nullable public @Nullable org.bukkit.inventory.meta.trim.ArmorTrim getTrim()
      Specified by:
      getTrim in interface org.bukkit.inventory.meta.ArmorMeta
    • clone

      @NotNull public @NotNull ArmorMetaMock clone()
      Specified by:
      clone in interface org.bukkit.inventory.meta.ArmorMeta
      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
      Overrides:
      clone in class ItemMetaMock
    • serialize

      @NotNull public @NotNull Map<String,Object> serialize()
      Description copied from class: ItemMetaMock
      Serializes the properties of an ItemMetaMock 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 ItemMetaMock.
    • deserializeInternal

      protected void deserializeInternal(@NotNull @NotNull Map<String,Object> args)
      Overrides:
      deserializeInternal in class ItemMetaMock
    • deserialize

      @NotNull public static @NotNull ArmorMetaMock deserialize(@NotNull @NotNull Map<String,Object> args)