<divclass="block">Represents a brewer that can create <ahref="PotionEffect.html"title="class in org.bukkit.potion"><code>PotionEffect</code></a>s.</div>
<divclass="block">Adds a new potion mix recipe.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="PotionEffect.html"title="class in org.bukkit.potion">PotionEffect</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#createEffect(org.bukkit.potion.PotionEffectType,int,int)"class="member-name-link">createEffect</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="PotionEffectType.html"title="class in org.bukkit.potion">PotionEffectType</a> potion,
<divclass="block">Creates a <ahref="PotionEffect.html"title="class in org.bukkit.potion"><code>PotionEffect</code></a> from the given <ahref="PotionEffectType.html"title="class in org.bukkit.potion"><code>PotionEffectType</code></a>,
applying duration modifiers and checks.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="PotionEffect.html"title="class in org.bukkit.potion">PotionEffect</a>></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#getEffects(org.bukkit.potion.PotionType,boolean,boolean)"class="member-name-link">getEffects</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="PotionType.html"title="enum class in org.bukkit.potion">PotionType</a> type,
<divclass="block">Returns a collection of <ahref="PotionEffect.html"title="class in org.bukkit.potion"><code>PotionEffect</code></a> that would be applied from
a potion with the given type.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="PotionEffect.html"title="class in org.bukkit.potion">PotionEffect</a>></code></div>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="PotionEffect.html"title="class in org.bukkit.potion">PotionEffect</a></span> <spanclass="element-name">createEffect</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="PotionEffectType.html"title="class in org.bukkit.potion">PotionEffectType</a> potion,
int duration,
int amplifier)</span></div>
<divclass="block">Creates a <ahref="PotionEffect.html"title="class in org.bukkit.potion"><code>PotionEffect</code></a> from the given <ahref="PotionEffectType.html"title="class in org.bukkit.potion"><code>PotionEffectType</code></a>,
applying duration modifiers and checks.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>potion</code> - The type of potion</dd>
<dd><code>duration</code> - The duration in ticks</dd>
<dd><code>amplifier</code> - The amplifier of the effect</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html"title="class or interface in java.lang"class="external-link">@Deprecated</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="PotionEffect.html"title="class in org.bukkit.potion">PotionEffect</a>></span> <spanclass="element-name">getEffectsFromDamage</span><wbr><spanclass="parameters">(int damage)</span></div>
<divclass="block">Returns a collection of <ahref="PotionEffect.html"title="class in org.bukkit.potion"><code>PotionEffect</code></a> that would be applied from
a potion with the given data value.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>damage</code> - The data value of the potion</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="PotionEffect.html"title="class in org.bukkit.potion">PotionEffect</a>></span> <spanclass="element-name">getEffects</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="PotionType.html"title="enum class in org.bukkit.potion">PotionType</a> type,
boolean upgraded,
boolean extended)</span></div>
<divclass="block">Returns a collection of <ahref="PotionEffect.html"title="class in org.bukkit.potion"><code>PotionEffect</code></a> that would be applied from
a potion with the given type.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>type</code> - The type of the potion</dd>
<dd><code>upgraded</code> - Whether the potion is upgraded</dd>
<dd><code>extended</code> - Whether the potion is extended</dd>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">addPotionMix</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="../../../io/papermc/paper/potion/PotionMix.html"title="class in io.papermc.paper.potion">PotionMix</a> potionMix)</span></div>
<divclass="block">Adds a new potion mix recipe.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>potionMix</code> - the potion mix to add</dd>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">removePotionMix</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="../NamespacedKey.html"title="class in org.bukkit">NamespacedKey</a> key)</span></div>
<divclass="block">Removes a potion mix recipe.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>key</code> - the key of the mix to remove</dd>