Package com.cryptomorin.xseries
Class XPotion.Effect
java.lang.Object
com.cryptomorin.xseries.XPotion.Effect
- Enclosing class:
- XPotion
For now, this merely acts as a chance wrapper for potion effects.
- Since:
- 3.0.0
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Effect
public Effect(org.bukkit.potion.PotionEffect effect, double chance)
-
-
Method Details
-
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)
-