<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>
<dd><code><ahref="../Cancellable.html"title="interface in org.bukkit.event">Cancellable</a></code></dd>
</dl>
<dlclass="notes">
<dt>Direct Known Subclasses:</dt>
<dd><code><ahref="EntityDamageByBlockEvent.html"title="class in org.bukkit.event.entity">EntityDamageByBlockEvent</a></code>, <code><ahref="EntityDamageByEntityEvent.html"title="class in org.bukkit.event.entity">EntityDamageByEntityEvent</a></code></dd>
</dl>
<hr>
<divclass="type-signature"><spanclass="modifiers">public class </span><spanclass="element-name type-name-label">EntityDamageEvent</span>
<spanclass="extends-implements">extends <ahref="EntityEvent.html"title="class in org.bukkit.event.entity">EntityEvent</a>
implements <ahref="../Cancellable.html"title="interface in org.bukkit.event">Cancellable</a></span></div>
<divclass="block">Stores data for damage events</div>
<divclass="col-second even-row-color"><code><ahref="EntityDamageEvent.DamageCause.html"class="type-name-link"title="enum class in org.bukkit.event.entity">EntityDamageEvent.DamageCause</a></code></div>
<divclass="col-last even-row-color">
<divclass="block">An enum to specify the cause of the damage</div>
<divclass="col-second odd-row-color"><code><ahref="EntityDamageEvent.DamageModifier.html"class="type-name-link"title="enum class in org.bukkit.event.entity">EntityDamageEvent.DamageModifier</a></code></div>
<divclass="deprecation-comment">This API is responsible for a large number of implementation
problems and is in general unsustainable to maintain.</div>
</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.Entity,org.bukkit.event.entity.EntityDamageEvent.DamageCause,double)"class="member-name-link">EntityDamageEvent</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/Entity.html"title="interface in org.bukkit.entity">Entity</a> damagee,
<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="EntityDamageEvent.DamageCause.html"title="enum class in org.bukkit.event.entity">EntityDamageEvent.DamageCause</a> cause,
double damage)</code></div>
<divclass="col-last even-row-color"> </div>
<divclass="col-constructor-name odd-row-color"><code><ahref="#%3Cinit%3E(org.bukkit.entity.Entity,org.bukkit.event.entity.EntityDamageEvent.DamageCause,java.util.Map,java.util.Map)"class="member-name-link">EntityDamageEvent</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/Entity.html"title="interface in org.bukkit.entity">Entity</a> damagee,
<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="EntityDamageEvent.DamageCause.html"title="enum class in org.bukkit.event.entity">EntityDamageEvent.DamageCause</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://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html"title="class or interface in java.util"class="external-link">Map</a><<ahref="EntityDamageEvent.DamageModifier.html"title="enum class in org.bukkit.event.entity">EntityDamageEvent.DamageModifier</a>,<wbr><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Double.html"title="class or interface in java.lang"class="external-link">Double</a>> modifiers,
<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/Map.html"title="class or interface in java.util"class="external-link">Map</a><<ahref="EntityDamageEvent.DamageModifier.html"title="enum class in org.bukkit.event.entity">EntityDamageEvent.DamageModifier</a>,<wbr>? extends <ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/base/Function.html"title="class or interface in com.google.common.base"class="external-link">Function</a><? super <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Double.html"title="class or interface in java.lang"class="external-link">Double</a>,<wbr><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Double.html"title="class or interface in java.lang"class="external-link">Double</a>>> modifierFunctions)</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="EntityDamageEvent.DamageCause.html"title="enum class in org.bukkit.event.entity">EntityDamageEvent.DamageCause</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#getDamage(org.bukkit.event.entity.EntityDamageEvent.DamageModifier)"class="member-name-link">getDamage</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="EntityDamageEvent.DamageModifier.html"title="enum class in org.bukkit.event.entity">EntityDamageEvent.DamageModifier</a> type)</code></div>
<divclass="block">Gets the amount of damage caused by the event after all damage
reduction is applied.</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-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#getOriginalDamage(org.bukkit.event.entity.EntityDamageEvent.DamageModifier)"class="member-name-link">getOriginalDamage</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="EntityDamageEvent.DamageModifier.html"title="enum class in org.bukkit.event.entity">EntityDamageEvent.DamageModifier</a> type)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#isApplicable(org.bukkit.event.entity.EntityDamageEvent.DamageModifier)"class="member-name-link">isApplicable</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="EntityDamageEvent.DamageModifier.html"title="enum class in org.bukkit.event.entity">EntityDamageEvent.DamageModifier</a> type)</code></div>
<divclass="block">This checks to see if a particular modifier is valid for this event's
caller, such that, <ahref="#setDamage(org.bukkit.event.entity.EntityDamageEvent.DamageModifier,double)"><code>setDamage(DamageModifier, double)</code></a> will not
throw an <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/UnsupportedOperationException.html"title="class or interface in java.lang"class="external-link"><code>UnsupportedOperationException</code></a>.</div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#setDamage(org.bukkit.event.entity.EntityDamageEvent.DamageModifier,double)"class="member-name-link">setDamage</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="EntityDamageEvent.DamageModifier.html"title="enum class in org.bukkit.event.entity">EntityDamageEvent.DamageModifier</a> type,
<divclass="block">Sets the damage for the specified modifier.</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="modifiers">public</span> <spanclass="element-name">EntityDamageEvent</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/Entity.html"title="interface in org.bukkit.entity">Entity</a> damagee,
<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="EntityDamageEvent.DamageCause.html"title="enum class in org.bukkit.event.entity">EntityDamageEvent.DamageCause</a> cause,
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="element-name">EntityDamageEvent</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/Entity.html"title="interface in org.bukkit.entity">Entity</a> damagee,
<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="EntityDamageEvent.DamageCause.html"title="enum class in org.bukkit.event.entity">EntityDamageEvent.DamageCause</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="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html"title="class or interface in java.util"class="external-link">Map</a><<ahref="EntityDamageEvent.DamageModifier.html"title="enum class in org.bukkit.event.entity">EntityDamageEvent.DamageModifier</a>,<wbr><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Double.html"title="class or interface in java.lang"class="external-link">Double</a>> modifiers,
<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="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html"title="class or interface in java.util"class="external-link">Map</a><<ahref="EntityDamageEvent.DamageModifier.html"title="enum class in org.bukkit.event.entity">EntityDamageEvent.DamageModifier</a>,<wbr>? extends <ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/base/Function.html"title="class or interface in com.google.common.base"class="external-link">Function</a><? super <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Double.html"title="class or interface in java.lang"class="external-link">Double</a>,<wbr><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Double.html"title="class or interface in java.lang"class="external-link">Double</a>>> modifierFunctions)</span></div>
<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>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">double</span> <spanclass="element-name">getOriginalDamage</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="EntityDamageEvent.DamageModifier.html"title="enum class in org.bukkit.event.entity">EntityDamageEvent.DamageModifier</a> type)</span>
throws <spanclass="exceptions"><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></span></div>
<divclass="block">Gets the original damage for the specified modifier, as defined at this
event's construction.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>type</code> - the modifier</dd>
<dt>Returns:</dt>
<dd>the original damage</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 type is null</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">void</span> <spanclass="element-name">setDamage</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="EntityDamageEvent.DamageModifier.html"title="enum class in org.bukkit.event.entity">EntityDamageEvent.DamageModifier</a> type,
double damage)</span>
throws <spanclass="exceptions"><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>,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/UnsupportedOperationException.html"title="class or interface in java.lang"class="external-link">UnsupportedOperationException</a></span></div>
<divclass="block">Sets the damage for the specified modifier.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>type</code> - the damage modifier</dd>
<dd><code>damage</code> - the scalar value of the damage's modifier</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 type is null</dd>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/UnsupportedOperationException.html"title="class or interface in java.lang"class="external-link">UnsupportedOperationException</a></code> - if the caller does not support
the particular DamageModifier, or to rephrase, when <ahref="#isApplicable(org.bukkit.event.entity.EntityDamageEvent.DamageModifier)"><code>isApplicable(DamageModifier)</code></a> returns false</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">double</span> <spanclass="element-name">getDamage</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="EntityDamageEvent.DamageModifier.html"title="enum class in org.bukkit.event.entity">EntityDamageEvent.DamageModifier</a> type)</span>
throws <spanclass="exceptions"><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></span></div>
<divclass="block">Gets the damage change for some modifier</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>type</code> - the damage modifier</dd>
<dt>Returns:</dt>
<dd>The raw amount of damage caused by the event</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 type is null</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">boolean</span> <spanclass="element-name">isApplicable</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="EntityDamageEvent.DamageModifier.html"title="enum class in org.bukkit.event.entity">EntityDamageEvent.DamageModifier</a> type)</span>
throws <spanclass="exceptions"><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></span></div>
<divclass="block">This checks to see if a particular modifier is valid for this event's
caller, such that, <ahref="#setDamage(org.bukkit.event.entity.EntityDamageEvent.DamageModifier,double)"><code>setDamage(DamageModifier, double)</code></a> will not
throw an <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/UnsupportedOperationException.html"title="class or interface in java.lang"class="external-link"><code>UnsupportedOperationException</code></a>.
<p>
<ahref="EntityDamageEvent.DamageModifier.html#BASE"><code>EntityDamageEvent.DamageModifier.BASE</code></a> is always applicable.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>type</code> - the modifier</dd>
<dt>Returns:</dt>
<dd>true if the modifier is supported by the caller, false otherwise</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 type is null</dd>
<divclass="block">Sets the raw amount of damage caused by the event.
<p>
For compatibility this also recalculates the modifiers and scales
them by the difference between the modifier for the previous damage
value and the new one.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>damage</code> - The raw amount of damage caused by the event</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="EntityDamageEvent.DamageCause.html"title="enum class in org.bukkit.event.entity">EntityDamageEvent.DamageCause</a></span> <spanclass="element-name">getCause</span>()</div>
<divclass="block">Gets the cause of the damage.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>A DamageCause value detailing the cause of the damage.</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>