Class PotionMetaMock

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

public class PotionMetaMock extends ItemMetaMock implements org.bukkit.inventory.meta.PotionMeta
This ItemMetaMock mocks the implementation of SuspiciousStewMeta.
  • Constructor Details

    • PotionMetaMock

      public PotionMetaMock()
    • PotionMetaMock

      public PotionMetaMock(org.bukkit.inventory.meta.PotionMeta meta)
  • Method Details

    • hashCode

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

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

      public PotionMetaMock 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.PotionMeta
      Specified by:
      clone in interface org.bukkit.inventory.meta.Repairable
      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.PotionMeta
    • clearCustomEffects

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

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

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

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

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

      public boolean hasColor()
      Specified by:
      hasColor in interface org.bukkit.inventory.meta.PotionMeta
    • getColor

      @Nullable public @Nullable org.bukkit.Color getColor()
      Specified by:
      getColor in interface org.bukkit.inventory.meta.PotionMeta
    • setColor

      public void setColor(@Nullable @Nullable org.bukkit.Color color)
      Specified by:
      setColor in interface org.bukkit.inventory.meta.PotionMeta
    • setBasePotionData

      public void setBasePotionData(@NotNull @NotNull org.bukkit.potion.PotionData data)
      Specified by:
      setBasePotionData in interface org.bukkit.inventory.meta.PotionMeta
    • getBasePotionData

      @NotNull public @NotNull org.bukkit.potion.PotionData getBasePotionData()
      Specified by:
      getBasePotionData in interface org.bukkit.inventory.meta.PotionMeta
    • setMainEffect

      public boolean setMainEffect(@NotNull @NotNull org.bukkit.potion.PotionEffectType type)
      Specified by:
      setMainEffect in interface org.bukkit.inventory.meta.PotionMeta