Class AxolotlBucketMetaMock

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

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

    • AxolotlBucketMetaMock

      public AxolotlBucketMetaMock()
      Constructs a new AxolotlBucketMetaMock.
    • AxolotlBucketMetaMock

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

    • getVariant

      @NotNull public org.bukkit.entity.Axolotl.Variant getVariant()
      Specified by:
      getVariant in interface org.bukkit.inventory.meta.AxolotlBucketMeta
    • setVariant

      public void setVariant(@NotNull org.bukkit.entity.Axolotl.Variant variant)
      Specified by:
      setVariant in interface org.bukkit.inventory.meta.AxolotlBucketMeta
    • hasVariant

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

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

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

      @NotNull public @NotNull AxolotlBucketMetaMock clone()
      Specified by:
      clone in interface org.bukkit.inventory.meta.AxolotlBucketMeta
      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 AxolotlBucketMetaMock deserialize(@NotNull @NotNull Map<String,Object> args)
      Required method for Bukkit deserialization.
      Parameters:
      args - A serialized AxolotlBucketMetaMock object in a Map<String, Object> format.
      Returns:
      A new instance of the AxolotlBucketMetaMock class.
    • serialize

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

      protected String getTypeName()
      Overrides:
      getTypeName in class ItemMetaMock