Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.potion.PotionBrewer Interface Reference

Public Member Functions

PotionEffect createEffect (PotionEffectType potion, int duration, int amplifier)
 
Collection< PotionEffectgetEffectsFromDamage (int damage)
 

Detailed Description

Represents a brewer that can create PotionEffects.

Definition at line 8 of file PotionBrewer.java.

Member Function Documentation

PotionEffect org.bukkit.potion.PotionBrewer.createEffect ( PotionEffectType  potion,
int  duration,
int  amplifier 
)

Creates a PotionEffect from the given PotionEffectType, applying duration modifiers and checks.

Parameters
potionThe type of potion
durationThe duration in ticks
amplifierThe amplifier of the effect
Returns
The resulting potion 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.

Parameters
damageThe data value of the potion
Returns
The list of effects
Deprecated:
Magic value

Referenced by org.bukkit.potion.Potion.getEffects().


The documentation for this interface was generated from the following file: