Interface PotionBrewer


@Deprecated(since="26.3", forRemoval=true) public interface PotionBrewer
Deprecated, for removal: This API element is subject to removal in a future version.
since mojang introduced data driven brewing recipes, this type no longer offers anything that isn't covered by existing recipe and potion type API
Used to manage custom PotionMixs.
See Also:
  • Method Details

    • addPotionMix

      @Deprecated(since="26.3", forRemoval=true) default void addPotionMix(@NotNull PotionMix potionMix)
      Deprecated, for removal: This API element is subject to removal in a future version.
      fully replaced by BrewingRecipe
      Adds a new potion mix recipe.
      Parameters:
      potionMix - the potion mix to add
    • removePotionMix

      @Deprecated(since="26.3", forRemoval=true) default void removePotionMix(@NotNull NamespacedKey key)
      Deprecated, for removal: This API element is subject to removal in a future version.
      fully replaced by BrewingRecipe
      Removes a potion mix recipe.
      Parameters:
      key - the key of the mix to remove
    • resetPotionMixes

      @Deprecated(since="26.3", forRemoval=true) void resetPotionMixes()
      Deprecated, for removal: This API element is subject to removal in a future version.
      fully replaced by BrewingRecipe
      Resets potion mixes to their default, removing all custom ones.
    • createEffect

      @Deprecated(forRemoval=true, since="1.20.5") @NotNull default @NotNull PotionEffect createEffect(@NotNull @NotNull PotionEffectType potion, int duration, int amplifier)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a PotionEffect from the given PotionEffectType, applying duration modifiers and checks.
      Parameters:
      potion - The type of potion
      duration - The duration in ticks
      amplifier - The amplifier of the effect
      Returns:
      The resulting potion effect
    • getEffectsFromDamage

      @Deprecated(since="1.6.2", forRemoval=true) @NotNull default @NotNull Collection<PotionEffect> getEffectsFromDamage(int damage)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Non-Functional
      Returns a collection of PotionEffect that would be applied from a potion with the given data value.
      Parameters:
      damage - The data value of the potion
      Returns:
      The list of effects
    • getEffects

      @NotNull @Deprecated(since="1.20.2", forRemoval=true) @NotNull Collection<PotionEffect> getEffects(@NotNull @NotNull PotionType type, boolean upgraded, boolean extended)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Upgraded / extended potions are now their own PotionType use PotionType.getPotionEffects() instead
      Returns a collection of PotionEffect that would be applied from a potion with the given type.
      Parameters:
      type - The type of the potion
      upgraded - Whether the potion is upgraded
      extended - Whether the potion is extended
      Returns:
      The list of effects