Package fr.andross.banitem.utils.potions
Class PotionWrapper
java.lang.Object
fr.andross.banitem.utils.potions.PotionWrapper
A potion wrapper class that stores the Bukkit potion type with the level.
- Version:
- 3.1
- Author:
- Andross
-
Constructor Summary
ConstructorsConstructorDescriptionPotionWrapper
(@NotNull org.bukkit.potion.PotionEffectType potionEffectType, int level) Wrap a minecraft potion with its level, so it can easily be compared depending on the Minecraft version used. -
Method Summary
-
Constructor Details
-
PotionWrapper
public PotionWrapper(@NotNull @NotNull org.bukkit.potion.PotionEffectType potionEffectType, int level) Wrap a minecraft potion with its level, so it can easily be compared depending on the Minecraft version used.- Parameters:
potionEffectType
- the Minecraft potionlevel
- the potion level
-
-
Method Details
-
getPotionEffectType
@NotNull public @NotNull 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
-
hashCode
public int hashCode()
-