Class SuspiciousStewMetaMock

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

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

    • SuspiciousStewMetaMock

      public SuspiciousStewMetaMock()
      Constructs a new ArmorStandMetaMock.
    • SuspiciousStewMetaMock

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

    • hashCode

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

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

      @NotNull public @NotNull SuspiciousStewMetaMock 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
      Specified by:
      clone in interface org.bukkit.inventory.meta.SuspiciousStewMeta
      Overrides:
      clone in class ItemMetaMock
    • addCustomEffect

      public boolean addCustomEffect(@NotNull @NotNull org.bukkit.potion.PotionEffect effect, boolean overwrite)
      Specified by:
      addCustomEffect in interface org.bukkit.inventory.meta.SuspiciousStewMeta
    • addCustomEffect

      public boolean addCustomEffect(@NotNull @NotNull io.papermc.paper.potion.SuspiciousEffectEntry suspiciousEffectEntry, boolean overwrite)
      Specified by:
      addCustomEffect in interface org.bukkit.inventory.meta.SuspiciousStewMeta
    • clearCustomEffects

      public boolean clearCustomEffects()
      Specified by:
      clearCustomEffects in interface org.bukkit.inventory.meta.SuspiciousStewMeta
    • getCustomEffects

      @NotNull public @NotNull List<org.bukkit.potion.PotionEffect> getCustomEffects()
      Specified by:
      getCustomEffects in interface org.bukkit.inventory.meta.SuspiciousStewMeta
    • hasCustomEffect

      public boolean hasCustomEffect(@NotNull @NotNull org.bukkit.potion.PotionEffectType type)
      Specified by:
      hasCustomEffect in interface org.bukkit.inventory.meta.SuspiciousStewMeta
    • hasCustomEffects

      public boolean hasCustomEffects()
      Specified by:
      hasCustomEffects in interface org.bukkit.inventory.meta.SuspiciousStewMeta
    • removeCustomEffect

      public boolean removeCustomEffect(@NotNull @NotNull org.bukkit.potion.PotionEffectType type)
      Specified by:
      removeCustomEffect in interface org.bukkit.inventory.meta.SuspiciousStewMeta
    • deserialize

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

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

      protected String getTypeName()
      Overrides:
      getTypeName in class ItemMetaMock