Class CrossbowMetaMock

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

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

    • CrossbowMetaMock

      public CrossbowMetaMock()
      Constructs a new CrossbowMetaMock.
    • CrossbowMetaMock

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

    • hasChargedProjectiles

      public boolean hasChargedProjectiles()
      Specified by:
      hasChargedProjectiles in interface org.bukkit.inventory.meta.CrossbowMeta
    • getChargedProjectiles

      @NotNull public @NotNull List<org.bukkit.inventory.ItemStack> getChargedProjectiles()
      Specified by:
      getChargedProjectiles in interface org.bukkit.inventory.meta.CrossbowMeta
    • setChargedProjectiles

      public void setChargedProjectiles(@Nullable @Nullable List<org.bukkit.inventory.ItemStack> projectiles)
      Specified by:
      setChargedProjectiles in interface org.bukkit.inventory.meta.CrossbowMeta
    • addChargedProjectile

      public void addChargedProjectile(@NotNull @NotNull org.bukkit.inventory.ItemStack item)
      Specified by:
      addChargedProjectile in interface org.bukkit.inventory.meta.CrossbowMeta
    • hashCode

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

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

      @NotNull public @NotNull CrossbowMetaMock 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
      Overrides:
      clone in class ItemMetaMock
    • deserialize

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

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

      protected String getTypeName()
      Overrides:
      getTypeName in class ItemMetaMock