<divclass="inheritance"title="Inheritance Tree"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">java.lang.Object</a>
<divclass="type-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>
</span><spanclass="modifiers">public class </span><spanclass="element-name type-name-label">Potion</span>
<spanclass="extends-implements">extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></span></div>
<divclass="col-constructor-name even-row-color"><code><ahref="#%3Cinit%3E(org.bukkit.potion.PotionType)"class="member-name-link">Potion</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)</code></div>
<divclass="block">Construct a new potion of the given type.</div>
</div>
<divclass="col-constructor-name odd-row-color"><code><ahref="#%3Cinit%3E(org.bukkit.potion.PotionType,int)"class="member-name-link">Potion</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">Create a new potion of the given type and level.</div>
</div>
<divclass="col-constructor-name even-row-color"><code><ahref="#%3Cinit%3E(org.bukkit.potion.PotionType,int,boolean)"class="member-name-link">Potion</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="deprecation-comment">In favour of using <ahref="#%3Cinit%3E(org.bukkit.potion.PotionType)"><code>Potion(PotionType)</code></a> with <ahref="#splash()"><code>splash()</code></a>.</div>
</div>
</div>
<divclass="col-constructor-name odd-row-color"><code><ahref="#%3Cinit%3E(org.bukkit.potion.PotionType,int,boolean,boolean)"class="member-name-link">Potion</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="deprecation-comment">In favour of using <ahref="#%3Cinit%3E(org.bukkit.potion.PotionType)"><code>Potion(PotionType)</code></a> with <ahref="#extend()"><code>extend()</code></a> and possibly <ahref="#splash()"><code>splash()</code></a>.</div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 method-summary-table-tab6"><code><ahref="#apply(org.bukkit.entity.LivingEntity)"class="member-name-link">apply</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="../entity/LivingEntity.html"title="interface in org.bukkit.entity">LivingEntity</a> to)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 method-summary-table-tab6"><code><ahref="#apply(org.bukkit.inventory.ItemStack)"class="member-name-link">apply</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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a> to)</code></div>
<divclass="block">Applies the effects of this potion to the given <ahref="../inventory/ItemStack.html"title="class in org.bukkit.inventory"><code>ItemStack</code></a>.</div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 method-summary-table-tab6"><code><ahref="#equals(java.lang.Object)"class="member-name-link">equals</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a> obj)</code></div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 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="Potion.html"title="class in org.bukkit.potion">Potion</a></code></div>
<divclass="block">Chain this to the constructor to extend the potion's duration.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <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="Potion.html"title="class in org.bukkit.potion">Potion</a></code></div>
<divclass="block">Gets the potion from its damage value.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <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="Potion.html"title="class in org.bukkit.potion">Potion</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><ahref="#fromItemStack(org.bukkit.inventory.ItemStack)"class="member-name-link">fromItemStack</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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a> item)</code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <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="PotionBrewer.html"title="interface in org.bukkit.potion">PotionBrewer</a></code></div>
<divclass="block">Returns an instance of <ahref="PotionBrewer.html"title="interface in org.bukkit.potion"><code>PotionBrewer</code></a>.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 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="block">Returns a collection of <ahref="PotionEffect.html"title="class in org.bukkit.potion"><code>PotionEffect</code></a>s that this <ahref="Potion.html"title="class in org.bukkit.potion"><code>Potion</code></a>
would confer upon a <ahref="../entity/LivingEntity.html"title="interface in org.bukkit.entity"><code>LivingEntity</code></a>.</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 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="PotionType.html"title="enum class in org.bukkit.potion">PotionType</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><ahref="#setPotionBrewer(org.bukkit.potion.PotionBrewer)"class="member-name-link">setPotionBrewer</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="PotionBrewer.html"title="interface in org.bukkit.potion">PotionBrewer</a> other)</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 method-summary-table-tab6"><code><ahref="#setType(org.bukkit.potion.PotionType)"class="member-name-link">setType</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)</code></div>
<divclass="block">Sets the <ahref="PotionType.html"title="enum class in org.bukkit.potion"><code>PotionType</code></a> of this potion.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 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="Potion.html"title="class in org.bukkit.potion">Potion</a></code></div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a></code></div>
<divclass="block">Converts this potion to an <ahref="../inventory/ItemStack.html"title="class in org.bukkit.inventory"><code>ItemStack</code></a> with the specified amount
and a correct damage value.</div>
</div>
</div>
</div>
</div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#clone()"title="class or interface in java.lang"class="external-link">clone</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#finalize()"title="class or interface in java.lang"class="external-link">finalize</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#getClass()"title="class or interface in java.lang"class="external-link">getClass</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notify()"title="class or interface in java.lang"class="external-link">notify</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notifyAll()"title="class or interface in java.lang"class="external-link">notifyAll</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#toString()"title="class or interface in java.lang"class="external-link">toString</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait()"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long)"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long,int)"title="class or interface in java.lang"class="external-link">wait</a></code></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="element-name">Potion</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)</span></div>
<divclass="block">Construct a new potion of the given type. Unless the type is <ahref="PotionType.html#WATER"><code>PotionType.WATER</code></a>, it will be level one, without extended duration.
Don't use this constructor to create a no-effect potion other than
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="element-name">Potion</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,
<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>
</span><spanclass="modifiers">public</span> <spanclass="element-name">Potion</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,
<divclass="deprecation-comment">In favour of using <ahref="#%3Cinit%3E(org.bukkit.potion.PotionType)"><code>Potion(PotionType)</code></a> with <ahref="#splash()"><code>splash()</code></a>.</div>
</div>
<divclass="block">Create a new potion of the given type and level.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>type</code> - The type of potion.</dd>
<dd><code>level</code> - The potion's level.</dd>
<dd><code>splash</code> - Whether it is a splash potion.</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>
</span><spanclass="modifiers">public</span> <spanclass="element-name">Potion</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,
<divclass="deprecation-comment">In favour of using <ahref="#%3Cinit%3E(org.bukkit.potion.PotionType)"><code>Potion(PotionType)</code></a> with <ahref="#extend()"><code>extend()</code></a> and possibly <ahref="#splash()"><code>splash()</code></a>.</div>
</div>
<divclass="block">Create a new potion of the given type and level.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>type</code> - The type of potion.</dd>
<dd><code>level</code> - The potion's level.</dd>
<dd><code>splash</code> - Whether it is a splash potion.</dd>
<dd><code>extended</code> - Whether it has an extended duration.</dd>
</dl>
</section>
</li>
</ul>
</section>
</li>
<!-- ============ METHOD DETAIL ========== -->
<li>
<sectionclass="method-details"id="method-detail">
<h2>Method Details</h2>
<ulclass="member-list">
<li>
<sectionclass="detail"id="splash()">
<h3>splash</h3>
<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="modifiers">public</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="Potion.html"title="class in org.bukkit.potion">Potion</a></span> <spanclass="element-name">splash</span>()</div>
<divclass="block">Chain this to the constructor to make the potion a splash potion.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>The potion.</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="extend()">
<h3>extend</h3>
<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="modifiers">public</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="Potion.html"title="class in org.bukkit.potion">Potion</a></span> <spanclass="element-name">extend</span>()</div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">void</span> <spanclass="element-name">apply</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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a> to)</span></div>
<divclass="block">Applies the effects of this potion to the given <ahref="../inventory/ItemStack.html"title="class in org.bukkit.inventory"><code>ItemStack</code></a>. The
ItemStack must be a potion.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>to</code> - The itemstack to apply to</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">void</span> <spanclass="element-name">apply</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="../entity/LivingEntity.html"title="interface in org.bukkit.entity">LivingEntity</a> to)</span></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">boolean</span> <spanclass="element-name">equals</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a> obj)</span></div>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"title="class or interface in java.lang"class="external-link">equals</a></code> in class <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></code></dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getEffects()">
<h3>getEffects</h3>
<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="modifiers">public</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>()</div>
<divclass="block">Returns a collection of <ahref="PotionEffect.html"title="class in org.bukkit.potion"><code>PotionEffect</code></a>s that this <ahref="Potion.html"title="class in org.bukkit.potion"><code>Potion</code></a>
would confer upon a <ahref="../entity/LivingEntity.html"title="interface in org.bukkit.entity"><code>LivingEntity</code></a>.</div>
<divclass="block">Returns the level of this potion.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>The level of this potion</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getType()">
<h3>getType</h3>
<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="modifiers">public</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="PotionType.html"title="enum class in org.bukkit.potion">PotionType</a></span> <spanclass="element-name">getType</span>()</div>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode()"title="class or interface in java.lang"class="external-link">hashCode</a></code> in class <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></code></dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">void</span> <spanclass="element-name">setType</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)</span></div>
<divclass="block">Sets the level of this potion.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>level</code> - The new level of this potion</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="toDamageValue()">
<h3>toDamageValue</h3>
<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>
<divclass="block">Converts this potion to a valid potion damage short, usable for potion
item stacks.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>The damage value of this potion</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="toItemStack(int)">
<h3>toItemStack</h3>
<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="modifiers">public</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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a></span> <spanclass="element-name">toItemStack</span><wbr><spanclass="parameters">(int amount)</span></div>
<divclass="block">Converts this potion to an <ahref="../inventory/ItemStack.html"title="class in org.bukkit.inventory"><code>ItemStack</code></a> with the specified amount
and a correct damage value.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>amount</code> - The amount of the ItemStack</dd>
<dt>Returns:</dt>
<dd>The created ItemStack</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="fromDamage(int)">
<h3>fromDamage</h3>
<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="modifiers">public static</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="Potion.html"title="class in org.bukkit.potion">Potion</a></span> <spanclass="element-name">fromDamage</span><wbr><spanclass="parameters">(int damage)</span></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="modifiers">public static</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="Potion.html"title="class in org.bukkit.potion">Potion</a></span> <spanclass="element-name">fromItemStack</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="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a> item)</span></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="modifiers">public static</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="PotionBrewer.html"title="interface in org.bukkit.potion">PotionBrewer</a></span> <spanclass="element-name">getBrewer</span>()</div>
<divclass="member-signature"><spanclass="modifiers">public static</span> <spanclass="return-type">void</span> <spanclass="element-name">setPotionBrewer</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="PotionBrewer.html"title="interface in org.bukkit.potion">PotionBrewer</a> other)</span></div>
<divclass="block">Sets the current instance of <ahref="PotionBrewer.html"title="interface in org.bukkit.potion"><code>PotionBrewer</code></a>. Generally not to be
used from within a plugin.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>other</code> - The new PotionBrewer</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getNameId()">
<h3>getNameId</h3>
<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>