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.

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

damageThe data value of the potion
The list of effects
Magic value

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

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