Package org.bukkit.potion
Interface PotionBrewer
public interface PotionBrewer
Represents a brewer that can create 
PotionEffects.- 
Method SummaryModifier and TypeMethodDescriptioncreateEffect(PotionEffectType potion, int duration, int amplifier) Creates aPotionEffectfrom the givenPotionEffectType, applying duration modifiers and checks.getEffects(PotionType type, boolean upgraded, boolean extended) Deprecated.getEffectsFromDamage(int damage) Deprecated.Non-Functional
- 
Method Details- 
createEffectCreates aPotionEffectfrom the givenPotionEffectType, applying duration modifiers and checks.- Parameters:
- potion- The type of potion
- duration- The duration in ticks
- amplifier- The amplifier of the effect
- Returns:
- The resulting potion effect
 
- 
getEffectsFromDamageDeprecated.Non-FunctionalReturns a collection ofPotionEffectthat would be applied from a potion with the given data value.- Parameters:
- damage- The data value of the potion
- Returns:
- The list of effects
 
- 
getEffects@NotNull @Deprecated(since="1.20.2") Collection<PotionEffect> getEffects(@NotNull PotionType type, boolean upgraded, boolean extended) Deprecated.Upgraded / extended potions are now their ownPotionTypeusePotionType.getPotionEffects()insteadReturns a collection ofPotionEffectthat would be applied from a potion with the given type.- Parameters:
- type- The type of the potion
- upgraded- Whether the potion is upgraded
- extended- Whether the potion is extended
- Returns:
- The list of effects
 
 
- 
PotionTypeusePotionType.getPotionEffects()instead