|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PotionBrewer
Represents a brewer that can create PotionEffect
s.
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 |
---|
PotionEffect createEffect(PotionEffectType potion, int duration, int amplifier)
PotionEffect
from the given PotionEffectType
,
applying duration modifiers and checks.
potion
- The type of potionduration
- The duration in ticksamplifier
- The amplifier of the effect
Collection<PotionEffect> getEffectsFromDamage(int damage)
PotionEffect
that would be applied from a
potion with the given data value.
damage
- The data value of the potion
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |