Class XPotion.Effect

java.lang.Object
com.cryptomorin.xseries.XPotion.Effect
Enclosing class:
XPotion

public static class XPotion.Effect extends Object
For now, this merely acts as a chance wrapper for potion effects.
Since:
3.0.0
  • Constructor Details

    • Effect

      public Effect(org.bukkit.potion.PotionEffect effect, double chance)
  • Method Details

    • getXPotion

      public XPotion getXPotion()
    • getChance

      public double getChance()
    • hasChance

      public boolean hasChance()
    • setChance

      public void setChance(double chance)
    • apply

      public void apply(org.bukkit.entity.LivingEntity entity)
    • getEffect

      public org.bukkit.potion.PotionEffect getEffect()
    • setEffect

      public void setEffect(org.bukkit.potion.PotionEffect effect)