<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="inheritance"><ahref="../Event.html"title="class in org.bukkit.event">org.bukkit.event.Event</a>
<divclass="inheritance"><ahref="EntityEvent.html"title="class in org.bukkit.event.entity">org.bukkit.event.entity.EntityEvent</a>
<divclass="col-second even-row-color"><code><ahref="EntityPotionEffectEvent.Action.html"class="type-name-link"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Action</a></code></div>
<divclass="col-last even-row-color">
<divclass="block">An enum to specify the action to be performed.</div>
<divclass="col-second odd-row-color"><code><ahref="EntityPotionEffectEvent.Cause.html"class="type-name-link"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></code></div>
<divclass="col-last odd-row-color">
<divclass="block">An enum to specify the cause why an effect was changed.</div>
</div>
</div>
<divclass="inherited-list">
<h2id="nested-classes-inherited-from-class-org.bukkit.event.Event">Nested classes/interfaces inherited from class org.bukkit.event.<ahref="../Event.html"title="class in org.bukkit.event">Event</a></h2>
<code><ahref="../Event.Result.html"title="enum class in org.bukkit.event">Event.Result</a></code></div>
</section>
</li>
<!-- =========== FIELD SUMMARY =========== -->
<li>
<sectionclass="field-summary"id="field-summary">
<h2>Field Summary</h2>
<divclass="inherited-list">
<h3id="fields-inherited-from-class-org.bukkit.event.entity.EntityEvent">Fields inherited from class org.bukkit.event.entity.<ahref="EntityEvent.html"title="class in org.bukkit.event.entity">EntityEvent</a></h3>
<divclass="col-constructor-name even-row-color"><code><ahref="#%3Cinit%3E(org.bukkit.entity.LivingEntity,org.bukkit.potion.PotionEffect,org.bukkit.potion.PotionEffect,org.bukkit.event.entity.EntityPotionEffectEvent.Cause,org.bukkit.event.entity.EntityPotionEffectEvent.Action,boolean)"class="member-name-link">EntityPotionEffectEvent</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> livingEntity,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="../../potion/PotionEffect.html"title="class in org.bukkit.potion">PotionEffect</a> oldEffect,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="../../potion/PotionEffect.html"title="class in org.bukkit.potion">PotionEffect</a> newEffect,
<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="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a> cause,
<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="EntityPotionEffectEvent.Action.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Action</a> action,
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><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="EntityPotionEffectEvent.Action.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Action</a></code></div>
<divclass="block">Gets the action which will be performed on the potion effect type.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><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="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></code></div>
<divclass="block">Gets the cause why the effect has changed.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><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="../HandlerList.html"title="class in org.bukkit.event">HandlerList</a></code></div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><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="../HandlerList.html"title="class in org.bukkit.event">HandlerList</a></code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><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/PotionEffectType.html"title="class in org.bukkit.potion">PotionEffectType</a></code></div>
<divclass="block">Gets the modified potion effect type.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="../../potion/PotionEffect.html"title="class in org.bukkit.potion">PotionEffect</a></code></div>
<divclass="block">Gets new potion effect of the changed type to be applied.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="../../potion/PotionEffect.html"title="class in org.bukkit.potion">PotionEffect</a></code></div>
<divclass="block">Sets if the new potion effect will override the old potion effect (Only
applicable for the CHANGED action).</div>
</div>
</div>
</div>
</div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-org.bukkit.event.entity.EntityEvent">Methods inherited from class org.bukkit.event.entity.<ahref="EntityEvent.html"title="class in org.bukkit.event.entity">EntityEvent</a></h3>
<h3id="methods-inherited-from-class-org.bukkit.event.Event">Methods inherited from class org.bukkit.event.<ahref="../Event.html"title="class in org.bukkit.event">Event</a></h3>
<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#equals(java.lang.Object)"title="class or interface in java.lang"class="external-link">equals</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#hashCode()"title="class or interface in java.lang"class="external-link">hashCode</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="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Contract.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Contract</a>("_, null, null, _, _, _ -> fail")
</span><spanclass="modifiers">public</span> <spanclass="element-name">EntityPotionEffectEvent</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> livingEntity,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="../../potion/PotionEffect.html"title="class in org.bukkit.potion">PotionEffect</a> oldEffect,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="../../potion/PotionEffect.html"title="class in org.bukkit.potion">PotionEffect</a> newEffect,
<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="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a> cause,
<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="EntityPotionEffectEvent.Action.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Action</a> action,
boolean override)</span></div>
</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="getOldEffect()">
<h3>getOldEffect</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="../../potion/PotionEffect.html"title="class in org.bukkit.potion">PotionEffect</a></span> <spanclass="element-name">getOldEffect</span>()</div>
<divclass="block">Gets the old potion effect of the changed type, which will be removed.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>The old potion effect or null if the entity did not have the
changed effect type.</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getNewEffect()">
<h3>getNewEffect</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="../../potion/PotionEffect.html"title="class in org.bukkit.potion">PotionEffect</a></span> <spanclass="element-name">getNewEffect</span>()</div>
<divclass="block">Gets new potion effect of the changed type to be applied.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>The new potion effect or null if the effect of the changed type
will be removed.</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getCause()">
<h3>getCause</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="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></span> <spanclass="element-name">getCause</span>()</div>
<divclass="block">Gets the cause why the effect has changed.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>A Cause value why the effect has changed.</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getAction()">
<h3>getAction</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="EntityPotionEffectEvent.Action.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Action</a></span> <spanclass="element-name">getAction</span>()</div>
<divclass="block">Gets the action which will be performed on the potion effect type.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>An action to be performed on the potion effect type.</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getModifiedType()">
<h3>getModifiedType</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/PotionEffectType.html"title="class in org.bukkit.potion">PotionEffectType</a></span> <spanclass="element-name">getModifiedType</span>()</div>
<divclass="block">Gets the modified potion effect type.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>The effect type which will be modified on the entity.</dd>
<divclass="block"><spanclass="descfrm-type-label">Description copied from interface: <code><ahref="../Cancellable.html#isCancelled()">Cancellable</a></code></span></div>
<divclass="block">Gets the cancellation state of this event. A cancelled event will not
be executed in the server, but will still pass to other plugins</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="../Cancellable.html#isCancelled()">isCancelled</a></code> in interface <code><ahref="../Cancellable.html"title="interface in org.bukkit.event">Cancellable</a></code></dd>
<divclass="block"><spanclass="descfrm-type-label">Description copied from interface: <code><ahref="../Cancellable.html#setCancelled(boolean)">Cancellable</a></code></span></div>
<divclass="block">Sets the cancellation state of this event. A cancelled event will not
be executed in the server, but will still pass to other plugins.</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="../Cancellable.html#setCancelled(boolean)">setCancelled</a></code> in interface <code><ahref="../Cancellable.html"title="interface in org.bukkit.event">Cancellable</a></code></dd>
<dt>Parameters:</dt>
<dd><code>cancel</code> - true if you wish to cancel this event</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getHandlers()">
<h3>getHandlers</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="../HandlerList.html"title="class in org.bukkit.event">HandlerList</a></span> <spanclass="element-name">getHandlers</span>()</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="../Event.html#getHandlers()">getHandlers</a></code> in class <code><ahref="../Event.html"title="class in org.bukkit.event">Event</a></code></dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getHandlerList()">
<h3>getHandlerList</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="../HandlerList.html"title="class in org.bukkit.event">HandlerList</a></span> <spanclass="element-name">getHandlerList</span>()</div>