Class PotionWrapper

java.lang.Object
fr.andross.banitem.utils.potions.PotionWrapper

public final class PotionWrapper extends Object
A potion wrapper class that stores the Bukkit potion type with the level
Version:
3.1
Author:
Andross
  • Constructor Details

    • PotionWrapper

      public PotionWrapper(@NotNull org.bukkit.potion.PotionEffectType potionEffectType, int level)
  • Method Details

    • getPotionEffectType

      @NotNull public org.bukkit.potion.PotionEffectType getPotionEffectType()
      Get the PotionEffectType
      Returns:
      the PotionEffectType
    • getLevel

      public int getLevel()
      Get the level of the potion effect
      Returns:
      the level of the potion effect
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object