Package org.bukkit.potion
Interface PotionBrewer
public interface PotionBrewer
Represents a brewer that can create
PotionEffect
s.-
Method Summary
Modifier and Type Method Description PotionEffect
createEffect(PotionEffectType potion, int duration, int amplifier)
Creates aPotionEffect
from the givenPotionEffectType
, applying duration modifiers and checks.java.util.Collection<PotionEffect>
getEffectsFromDamage(int damage)
Deprecated.Magic value
-
Method Details
-
createEffect
Creates aPotionEffect
from the givenPotionEffectType
, applying duration modifiers and checks.- Parameters:
potion
- The type of potionduration
- The duration in ticksamplifier
- The amplifier of the effect- Returns:
- The resulting potion effect
-
getEffectsFromDamage
Deprecated.Magic valueReturns a collection ofPotionEffect
that would be applied from a potion with the given data value.- Parameters:
damage
- The data value of the potion- Returns:
- The list of effects
-