![]() |
Bukkit
1.5.2-R1.0
|
Represents a brewer that can create PotionEffects. More...
Public Member Functions | |
| PotionEffect | createEffect (PotionEffectType potion, int duration, int amplifier) |
| Creates a PotionEffect from the given PotionEffectType, applying duration modifiers and checks. | |
| Collection< PotionEffect > | getEffectsFromDamage (int damage) |
| Returns a collection of PotionEffect that would be applied from a potion with the given data value. | |
Represents a brewer that can create PotionEffects.
Definition at line 8 of file PotionBrewer.java.
| PotionEffect org.bukkit.potion.PotionBrewer.createEffect | ( | PotionEffectType | potion, |
| int | duration, | ||
| int | amplifier | ||
| ) |
Creates a PotionEffect from the given PotionEffectType, applying duration modifiers and checks.
| potion | The type of potion |
| duration | The duration in ticks |
| amplifier | The amplifier of the effect |
Referenced by org.bukkit.potion.PotionEffectType.createEffect().
| Collection<PotionEffect> org.bukkit.potion.PotionBrewer.getEffectsFromDamage | ( | int | damage | ) |
Returns a collection of PotionEffect that would be applied from a potion with the given data value.
| damage | The data value of the potion |
Referenced by org.bukkit.potion.Potion.getEffects().