org.bukkit.potion
Interface PotionBrewer


public interface PotionBrewer

Represents a brewer that can create PotionEffects.


Method Summary
 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.
 

Method Detail

createEffect

PotionEffect createEffect(PotionEffectType potion,
                          int duration,
                          int amplifier)
Creates a PotionEffect from the given PotionEffectType, 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

getEffectsFromDamage

Collection<PotionEffect> getEffectsFromDamage(int damage)
Returns a collection of PotionEffect 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


Copyright © 2013. All Rights Reserved.