接口 PotionBrewer
public interface PotionBrewer
Represents a brewer that can create
PotionEffect
s.-
方法概要
修饰符和类型方法说明createEffect
(PotionEffectType potion, int duration, int amplifier) Creates aPotionEffect
from the givenPotionEffectType
, applying duration modifiers and checks.getEffects
(PotionType type, boolean upgraded, boolean extended) Returns a collection ofPotionEffect
that would be applied from a potion with the given type.getEffectsFromDamage
(int damage) 已过时。Non-Functional
-
方法详细资料
-
createEffect
Creates aPotionEffect
from the givenPotionEffectType
, applying duration modifiers and checks.- 参数:
potion
- The type of potionduration
- The duration in ticksamplifier
- The amplifier of the effect- 返回:
- The resulting potion effect
-
getEffectsFromDamage
已过时。Non-FunctionalReturns a collection ofPotionEffect
that would be applied from a potion with the given data value.- 参数:
damage
- The data value of the potion- 返回:
- The list of effects
-
getEffects
Returns a collection ofPotionEffect
that would be applied from a potion with the given type.- 参数:
type
- The type of the potion- 返回:
- The list of effects
-