Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
PotionBrewer.java
1 package org.bukkit.potion;
2 
3 import java.util.Collection;
4 
5 /**
6  * Represents a brewer that can create {@link PotionEffect}s.
7  */
8 public interface PotionBrewer {
9 
10  /**
11  * Creates a {@link PotionEffect} from the given {@link PotionEffectType},
12  * applying duration modifiers and checks.
13  *
14  * @param potion The type of potion
15  * @param duration The duration in ticks
16  * @param amplifier The amplifier of the effect
17  * @return The resulting potion effect
18  */
19  public PotionEffect createEffect(PotionEffectType potion, int duration, int amplifier);
20 
21  /**
22  * Returns a collection of {@link PotionEffect} that would be applied from
23  * a potion with the given data value.
24  *
25  * @param damage The data value of the potion
26  * @return The list of effects
27  * @deprecated Magic value
28  */
29  @Deprecated
30  public Collection<PotionEffect> getEffectsFromDamage(int damage);
31 }
Collection< PotionEffect > getEffectsFromDamage(int damage)
PotionEffect createEffect(PotionEffectType potion, int duration, int amplifier)