<h1title="Enum Class EntityPotionEffectEvent.Cause"class="title">Enum Class EntityPotionEffectEvent.Cause</h1>
</div>
<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="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html"title="class or interface in java.lang"class="external-link">java.lang.Enum</a><<ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a>>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/Serializable.html"title="class or interface in java.io"class="external-link">Serializable</a></code>, <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Comparable.html"title="class or interface in java.lang"class="external-link">Comparable</a><<ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a>></code>, <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/constant/Constable.html"title="class or interface in java.lang.constant"class="external-link">Constable</a></code></dd>
</dl>
<dlclass="notes">
<dt>Enclosing class:</dt>
<dd><ahref="EntityPotionEffectEvent.html"title="class in org.bukkit.event.entity">EntityPotionEffectEvent</a></dd>
<spanclass="extends-implements">extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html"title="class or interface in java.lang"class="external-link">Enum</a><<ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a>></span></div>
<divclass="block">An enum to specify the cause why an effect was changed.</div>
<h2id="nested-classes-inherited-from-class-java.lang.Enum">Nested classes/interfaces inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html"title="class or interface in java.lang"class="external-link">Enum</a></h2>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.EnumDesc.html"title="class or interface in java.lang"class="external-link">Enum.EnumDesc</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.EnumDesc.html"title="class or interface in java.lang"class="external-link">E</a> extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html"title="class or interface in java.lang"class="external-link">Enum</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.EnumDesc.html"title="class or interface in java.lang"class="external-link">E</a>>></code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><ahref="#valueOf(java.lang.String)"class="member-name-link">valueOf</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> name)</code></div>
<divclass="block">Returns the enum constant of this class with the specified name.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a>[]</code></div>
<divclass="block">Returns an array containing the constants of this enum class, in
the order they are declared.</div>
</div>
</div>
</div>
</div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-java.lang.Enum">Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html"title="class or interface in java.lang"class="external-link">Enum</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.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/Enum.html#compareTo(E)"title="class or interface in java.lang"class="external-link">compareTo</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html#describeConstable()"title="class or interface in java.lang"class="external-link">describeConstable</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.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/Enum.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/Enum.html#getDeclaringClass()"title="class or interface in java.lang"class="external-link">getDeclaringClass</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.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/Enum.html#name()"title="class or interface in java.lang"class="external-link">name</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html#ordinal()"title="class or interface in java.lang"class="external-link">ordinal</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.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/Enum.html#valueOf(java.lang.Class,java.lang.String)"title="class or interface in java.lang"class="external-link">valueOf</a></code></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#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#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 static final</span> <spanclass="return-type"><ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></span> <spanclass="element-name">AREA_EFFECT_CLOUD</span></div>
<divclass="block">When the entity stands inside an area effect cloud.</div>
</section>
</li>
<li>
<sectionclass="detail"id="ARROW">
<h3>ARROW</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></span> <spanclass="element-name">ARROW</span></div>
<divclass="block">When the entity is hit by an spectral or tipped arrow.</div>
</section>
</li>
<li>
<sectionclass="detail"id="ATTACK">
<h3>ATTACK</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></span> <spanclass="element-name">ATTACK</span></div>
<divclass="block">When the entity is inflicted with a potion effect due to an entity
attack (e.g. a cave spider or a shulker bullet).</div>
</section>
</li>
<li>
<sectionclass="detail"id="AXOLOTL">
<h3>AXOLOTL</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></span> <spanclass="element-name">AXOLOTL</span></div>
<divclass="block">When an entity gets the effect from an axolotl.</div>
</section>
</li>
<li>
<sectionclass="detail"id="BEACON">
<h3>BEACON</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></span> <spanclass="element-name">BEACON</span></div>
<divclass="block">When beacon effects get applied due to the entity being nearby.</div>
</section>
</li>
<li>
<sectionclass="detail"id="COMMAND">
<h3>COMMAND</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></span> <spanclass="element-name">COMMAND</span></div>
<divclass="block">When a potion effect is changed due to the /effect command.</div>
</section>
</li>
<li>
<sectionclass="detail"id="CONDUIT">
<h3>CONDUIT</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></span> <spanclass="element-name">CONDUIT</span></div>
<divclass="block">When the entity gets the effect from a conduit.</div>
</section>
</li>
<li>
<sectionclass="detail"id="CONVERSION">
<h3>CONVERSION</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></span> <spanclass="element-name">CONVERSION</span></div>
<divclass="block">When a conversion from a villager zombie to a villager is started or
finished.</div>
</section>
</li>
<li>
<sectionclass="detail"id="DEATH">
<h3>DEATH</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></span> <spanclass="element-name">DEATH</span></div>
<divclass="block">When all effects are removed due to death (Note: This is called on
respawn, so it's player only!)</div>
</section>
</li>
<li>
<sectionclass="detail"id="DOLPHIN">
<h3>DOLPHIN</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></span> <spanclass="element-name">DOLPHIN</span></div>
<divclass="block">When the entity gets the effect from a dolphin.</div>
</section>
</li>
<li>
<sectionclass="detail"id="EXPIRATION">
<h3>EXPIRATION</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></span> <spanclass="element-name">EXPIRATION</span></div>
<divclass="block">When the effect was removed due to expiration.</div>
</section>
</li>
<li>
<sectionclass="detail"id="FOOD">
<h3>FOOD</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></span> <spanclass="element-name">FOOD</span></div>
<divclass="block">When an effect is inflicted due to food (e.g. when a player eats or a
cookie is given to a parrot).</div>
</section>
</li>
<li>
<sectionclass="detail"id="ILLUSION">
<h3>ILLUSION</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></span> <spanclass="element-name">ILLUSION</span></div>
<divclass="block">When an illusion illager makes himself disappear.</div>
</section>
</li>
<li>
<sectionclass="detail"id="MILK">
<h3>MILK</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></span> <spanclass="element-name">MILK</span></div>
<divclass="block">When all effects are removed due to a bucket of milk.</div>
</section>
</li>
<li>
<sectionclass="detail"id="PATROL_CAPTAIN">
<h3>PATROL_CAPTAIN</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></span> <spanclass="element-name">PATROL_CAPTAIN</span></div>
<divclass="block">When a player gets bad omen after killing a patrol captain.</div>
</section>
</li>
<li>
<sectionclass="detail"id="PLUGIN">
<h3>PLUGIN</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></span> <spanclass="element-name">PLUGIN</span></div>
<divclass="block">When a potion effect is modified through the plugin methods.</div>
</section>
</li>
<li>
<sectionclass="detail"id="POTION_DRINK">
<h3>POTION_DRINK</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></span> <spanclass="element-name">POTION_DRINK</span></div>
<divclass="block">When the entity drinks a potion.</div>
</section>
</li>
<li>
<sectionclass="detail"id="POTION_SPLASH">
<h3>POTION_SPLASH</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></span> <spanclass="element-name">POTION_SPLASH</span></div>
<divclass="block">When the entity is inflicted with an effect due to a splash potion.</div>
</section>
</li>
<li>
<sectionclass="detail"id="SPIDER_SPAWN">
<h3>SPIDER_SPAWN</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></span> <spanclass="element-name">SPIDER_SPAWN</span></div>
<divclass="block">When a spider gets effects when spawning on hard difficulty.</div>
</section>
</li>
<li>
<sectionclass="detail"id="TOTEM">
<h3>TOTEM</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></span> <spanclass="element-name">TOTEM</span></div>
<divclass="block">When the entity gets effects from a totem item saving it's life.</div>
</section>
</li>
<li>
<sectionclass="detail"id="TURTLE_HELMET">
<h3>TURTLE_HELMET</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></span> <spanclass="element-name">TURTLE_HELMET</span></div>
<divclass="block">When the entity gets water breathing by wearing a turtle helmet.</div>
</section>
</li>
<li>
<sectionclass="detail"id="UNKNOWN">
<h3>UNKNOWN</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></span> <spanclass="element-name">UNKNOWN</span></div>
<divclass="block">When the Cause is missing.</div>
</section>
</li>
<li>
<sectionclass="detail"id="VILLAGER_TRADE">
<h3>VILLAGER_TRADE</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></span> <spanclass="element-name">VILLAGER_TRADE</span></div>
<divclass="block">When a villager gets regeneration after a trade.</div>
</section>
</li>
<li>
<sectionclass="detail"id="WARDEN">
<h3>WARDEN</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></span> <spanclass="element-name">WARDEN</span></div>
<divclass="block">When an entity gets the effect from a warden.</div>
</section>
</li>
<li>
<sectionclass="detail"id="WITHER_ROSE">
<h3>WITHER_ROSE</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></span> <spanclass="element-name">WITHER_ROSE</span></div>
<divclass="block">When an entity comes in contact with a wither rose.</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="values()">
<h3>values</h3>
<divclass="member-signature"><spanclass="modifiers">public static</span> <spanclass="return-type"><ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a>[]</span> <spanclass="element-name">values</span>()</div>
<divclass="block">Returns an array containing the constants of this enum class, in
the order they are declared.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>an array containing the constants of this enum class, in the order they are declared</dd>
<divclass="member-signature"><spanclass="modifiers">public static</span> <spanclass="return-type"><ahref="EntityPotionEffectEvent.Cause.html"title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a></span> <spanclass="element-name">valueOf</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> name)</span></div>
<divclass="block">Returns the enum constant of this class with the specified name.
The string must match <i>exactly</i> an identifier used to declare an
enum constant in this class. (Extraneous whitespace characters are
not permitted.)</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>name</code> - the name of the enum constant to be returned.</dd>
<dt>Returns:</dt>
<dd>the enum constant with the specified name</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html"title="class or interface in java.lang"class="external-link">IllegalArgumentException</a></code> - if this enum class has no constant with the specified name</dd>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/NullPointerException.html"title="class or interface in java.lang"class="external-link">NullPointerException</a></code> - if the argument is null</dd>