Class CompassMetaMock

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

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

    • CompassMetaMock

      public CompassMetaMock()
      Constructs a new CompassMetaMock.
    • CompassMetaMock

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

    • hasLodestone

      public boolean hasLodestone()
      Specified by:
      hasLodestone in interface org.bukkit.inventory.meta.CompassMeta
    • getLodestone

      @Nullable public @Nullable org.bukkit.Location getLodestone()
      Specified by:
      getLodestone in interface org.bukkit.inventory.meta.CompassMeta
    • setLodestone

      public void setLodestone(@Nullable @Nullable org.bukkit.Location lodestone)
      Specified by:
      setLodestone in interface org.bukkit.inventory.meta.CompassMeta
    • isLodestoneTracked

      public boolean isLodestoneTracked()
      Specified by:
      isLodestoneTracked in interface org.bukkit.inventory.meta.CompassMeta
    • setLodestoneTracked

      public void setLodestoneTracked(boolean tracked)
      Specified by:
      setLodestoneTracked in interface org.bukkit.inventory.meta.CompassMeta
    • hashCode

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

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

      @NotNull public @NotNull CompassMetaMock clone()
      Specified by:
      clone in interface org.bukkit.inventory.meta.CompassMeta
      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
    • deserialize

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

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

      protected String getTypeName()
      Overrides:
      getTypeName in class ItemMetaMock