接口 PotionBrewer


public interface PotionBrewer
Represents a brewer that can create PotionEffects.
  • 方法详细资料

    • createEffect

      PotionEffect createEffect(PotionEffectType potion, int duration, int amplifier)
      Creates a PotionEffect from the given PotionEffectType, applying duration modifiers and checks.
      参数:
      potion - The type of potion
      duration - The duration in ticks
      amplifier - The amplifier of the effect
      返回:
      The resulting potion effect
    • getEffectsFromDamage

      @Deprecated Collection<PotionEffect> getEffectsFromDamage(int damage)
      已过时。
      Non-Functional
      Returns a collection of PotionEffect that would be applied from a potion with the given data value.
      参数:
      damage - The data value of the potion
      返回:
      The list of effects
    • getEffects

      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.
      参数:
      type - The type of the potion
      返回:
      The list of effects