public interface PotionBrewer
PotionEffects.| 限定符和类型 | 方法和说明 |
|---|---|
PotionEffect |
createEffect(PotionEffectType potion,
int duration,
int amplifier)
Creates a
PotionEffect from the given PotionEffectType,
applying duration modifiers and checks. |
java.util.Collection<PotionEffect> |
getEffects(PotionType type,
boolean upgraded,
boolean extended)
Returns a collection of
PotionEffect that would be applied from
a potion with the given type. |
java.util.Collection<PotionEffect> |
getEffectsFromDamage(int damage)
已过时。
Non-Functional
|
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@Deprecated java.util.Collection<PotionEffect> getEffectsFromDamage(int damage)
PotionEffect that would be applied from
a potion with the given data value.damage - The data value of the potionjava.util.Collection<PotionEffect> getEffects(PotionType type, boolean upgraded, boolean extended)
PotionEffect that would be applied from
a potion with the given type.type - The type of the potion