<dd><code><ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/audience/Audience.html"title="class or interface in net.kyori.adventure.audience"class="external-link">Audience</a></code>, <code><ahref="../command/CommandSender.html"title="interface in org.bukkit.command">CommandSender</a></code>, <code><ahref="Entity.html"title="interface in org.bukkit.entity">Entity</a></code>, <code><ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/event/HoverEventSource.html"title="class or interface in net.kyori.adventure.text.event"class="external-link">HoverEventSource</a><<ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/event/HoverEvent.ShowEntity.html"title="class or interface in net.kyori.adventure.text.event"class="external-link">HoverEvent.ShowEntity</a>></code>, <code><ahref="../metadata/Metadatable.html"title="interface in org.bukkit.metadata">Metadatable</a></code>, <code><ahref="../Nameable.html"title="interface in org.bukkit">Nameable</a></code>, <code><ahref="../permissions/Permissible.html"title="interface in org.bukkit.permissions">Permissible</a></code>, <code><ahref="../persistence/PersistentDataHolder.html"title="interface in org.bukkit.persistence">PersistentDataHolder</a></code>, <code><ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/pointer/Pointered.html"title="class or interface in net.kyori.adventure.pointer"class="external-link">Pointered</a></code>, <code><ahref="../permissions/ServerOperator.html"title="interface in org.bukkit.permissions">ServerOperator</a></code>, <code><ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/sound/Sound.Emitter.html"title="class or interface in net.kyori.adventure.sound"class="external-link">Sound.Emitter</a></code></dd>
</dl>
<dlclass="notes">
<dt>All Known Subinterfaces:</dt>
<dd><code><ahref="AbstractHorse.html"title="interface in org.bukkit.entity">AbstractHorse</a></code>, <code><ahref="AbstractSkeleton.html"title="interface in org.bukkit.entity">AbstractSkeleton</a></code>, <code><ahref="AbstractVillager.html"title="interface in org.bukkit.entity">AbstractVillager</a></code>, <code><ahref="Ageable.html"title="interface in org.bukkit.entity">Ageable</a></code>, <code><ahref="Allay.html"title="interface in org.bukkit.entity">Allay</a></code>, <code><ahref="Ambient.html"title="interface in org.bukkit.entity">Ambient</a></code>, <code><ahref="Animals.html"title="interface in org.bukkit.entity">Animals</a></code>, <code><ahref="ArmorStand.html"title="interface in org.bukkit.entity">ArmorStand</a></code>, <code><ahref="Axolotl.html"title="interface in org.bukkit.entity">Axolotl</a></code>, <code><ahref="Bat.html"title="interface in org.bukkit.entity">Bat</a></code>, <code><ahref="Bee.html"title="interface in org.bukkit.entity">Bee</a></code>, <code><ahref="Blaze.html"title="interface in org.bukkit.entity">Blaze</a></code>, <code><ahref="Breedable.html"title="interface in org.bukkit.entity">Breedable</a></code>, <code><ahref="Cat.html"title="interface in org.bukkit.entity">Cat</a></code>, <code><ahref="CaveSpider.html"title="interface in org.bukkit.entity">CaveSpider</a></code>, <code><ahref="ChestedHorse.html"title="interface in org.bukkit.entity">ChestedHorse</a></code>, <code><ahref="Chicken.html"title="interface in org.bukkit.entity">Chicken</a></code>, <code><ahref="Cod.html"title="interface in org.bukkit.entity">Cod</a></code>, <code><ahref="../../../io/papermc/paper/entity/CollarColorable.html"title="interface in io.papermc.paper.entity">CollarColorable</a></code>, <code><ahref="ComplexLivingEntity.html"title="interface in org.bukkit.entity">ComplexLivingEntity</a></code>, <code><ahref="Cow.html"title="interface in org.bukkit.entity">Cow</a></code>, <code><ahref="Creature.html"title="interface in org.bukkit.entity">Creature</a></code>, <code><ahref="Creeper.html"title="interface in org.bukkit.entity">Creeper</a></code>, <code><ahref="Dolphin.html"title="interface in org.bukkit.entity">Dolphin</a></code>, <code><ahref="Donkey.html"title="interface in org.bukkit.entity">Donkey</a></code>, <code><ahref="Drowned.html"title="interface in org.bukkit.entity">Drowned</a></code>, <code><ahref="ElderGuardian.html"title="interface in org.bukkit.entity">ElderGuardian</a></code>, <code><ahref="EnderDragon.html"title="interface in org.bukkit.entity">EnderDragon</a></code>, <code><ahref="EnderDragonPart.html"title="interface in org.bukkit.entity">EnderDragonPart</a></code>, <code><ahref="Enderman.html"title="interface in org.bukkit.entity">Enderman</a></code>, <code><ahref="Endermite.html"title="interface in org.bukkit.entity">Endermite</a></code>, <code><ahref="Evoker.html"title="interface in org.bukkit.entity">Evoker</a></code>, <code><ahref="Fish.html"title="interface in org.bukkit.entity">Fish</a></code>, <code><ahref="Flying.html"title="interface in org.bukkit.entity">Flying</a></code>, <code><ahref="Fox.html"title="interface in org.bukkit.entity">Fox</a></code>, <code><ahref="Frog.html"title="interface in org.bukkit.entity">Frog</a></code>, <code><ahref="Ghast.html"title="interface in org.bukkit.entity">Ghast</a></code>, <code><ahref="Giant.html"title="interface in org.bukkit.entity">Giant</a></code>, <code><ahref="GlowSquid.html"title="interface in org.bukkit.entity">GlowSquid</a></code>, <code><ahref="Goat.html"title="interface in org.bukkit.entity">Goat</a></code>, <code><ahref="Golem.html"title="interface in org.bukkit.entity">Golem</a></code>, <code><ahref="Guardian.html"title="interface in org.bukkit.entity">Guardian</a></code>, <code><ahref="Hoglin.html"title="interface in org.bukkit.entity">Hoglin</a></code>, <code><ahref="Horse.html"title="interface in org.bukkit.entity">Horse</a></code>, <code><ahref="HumanEntity.html"title="interface in org.bukkit.entity">HumanEntity</a></code>, <code><ahref="Hus
extends <ahref="Entity.html"title="interface in org.bukkit.entity">Entity</a></span></div>
<divclass="block">Represents an <ahref="Entity.html"title="interface in org.bukkit.entity"><code>Entity</code></a> that has health and can take damage.</div>
<h2id="nested-classes-inherited-from-class-org.bukkit.entity.Entity">Nested classes/interfaces inherited from interface org.bukkit.entity.<ahref="Entity.html"title="interface in org.bukkit.entity">Entity</a></h2>
<code><ahref="Entity.Spigot.html"title="class in org.bukkit.entity">Entity.Spigot</a></code></div>
<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="Entity.html"title="interface in org.bukkit.entity">Entity</a> source)</code></div>
<h3id="methods-inherited-from-class-net.kyori.adventure.audience.Audience">Methods inherited from interface net.kyori.adventure.audience.<ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/audience/Audience.html"title="class or interface in net.kyori.adventure.audience"class="external-link">Audience</a></h3>
<code><ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/audience/Audience.html#clearTitle()"title="class or interface in net.kyori.adventure.audience"class="external-link">clearTitle</a>, <ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/audience/Audience.html#filterAudience(java.util.function.Predicate)"title="class or interface in net.kyori.adventure.audience"class="external-link">filterAudience</a>, <ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/audience/Audience.html#forEachAudience(java.util.function.Consumer)"title="class or interface in net.kyori.adventure.audience"class="external-link">forEachAudience</a>, <ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/audience/Audience.html#hideBossBar(net.kyori.adventure.bossbar.BossBar)"title="class or interface in net.kyori.adventure.audience"class="external-link">hideBossBar</a>, <ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/audience/Audience.html#openBook(net.kyori.adventure.inventory.Book)"title="class or interface in net.kyori.adventure.audience"class="external-link">openBook</a>, <ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/audience/Audience.html#openBook(net.kyori.adventure.inventory.Book.Builder)"title="class or interface in net.kyori.adventure.audience"class="external-link">openBook</a>, <ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/audience/Audience.html#playSound(net.kyori.adventure.sound.Sound)"title="class or interface in net.kyori.adventure.audience"class="external-link">playSound</a>, <ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/audience/Audience.html#playSound(net.kyori.adventure.sound.Sound,double,double,double)"title="class or interface in net.kyori.adventure.audience"class="external-link">playSound</a>, <ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/audience/Audience.html#playSound(net.kyori.adventure.sound.Sound,net.kyori.adventure.sound.Sound.Emitter)"title="class or interface in net.kyori.adventure.audience"class="external-link">playSound</a>, <ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/audience/Audience.html#resetTitle()"title="class or interface in net.kyori.adventure.audience"class="external-link">resetTitle</a>, <ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/audience/Audience.html#sendActionBar(net.kyori.adventure.text.Component)"title="class or interface in net.kyori.adventure.audience"class="external-link">sendActionBar</a>, <ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/audience/Audience.html#sendActionBar(net.kyori.adventure.text.ComponentLike)"title="class or interface in net.kyori.adventure.audience"class="external-link">sendActionBar</a>, <ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/audience/Audience.html#sendMessage(net.kyori.adventure.identity.Identified,net.kyori.adventure.text.Component)"title="class or interface in net.kyori.adventure.audience"class="external-link">sendMessage</a>, <ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/audience/Audience.html#sendMessage(net.kyori.adventure.identity.Identified,net.kyori.adventure.text.ComponentLike)"title="class or interface in net.kyori.adventure.audience"class="external-link">sendMessage</a>, <ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/audience/Audience.html#sendMessage(net.kyori.adventure.identity.Identified,net.kyori.adventure.text.ComponentLike,net.kyori.adventure.audience.MessageType)"title="class or interface in net.kyori.adventure.audience"class="external-link">sendMessage</a>, <ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/audience/Audience.html#sendMessage(net.kyori.adventure.identity.Identified,net.kyori.adventure.text.Component,net.kyori.adventure.audience.MessageType)"title="class or interface in net.kyori.adventure.audience"class="external-link">sendMessage</a>, <ahr
<divclass="inherited-list">
<h3id="methods-inherited-from-class-org.bukkit.command.CommandSender">Methods inherited from interface org.bukkit.command.<ahref="../command/CommandSender.html"title="interface in org.bukkit.command">CommandSender</a></h3>
<h3id="methods-inherited-from-class-org.bukkit.entity.Entity">Methods inherited from interface org.bukkit.entity.<ahref="Entity.html"title="interface in org.bukkit.entity">Entity</a></h3>
<h3id="methods-inherited-from-class-net.kyori.adventure.text.event.HoverEventSource">Methods inherited from interface net.kyori.adventure.text.event.<ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/event/HoverEventSource.html"title="class or interface in net.kyori.adventure.text.event"class="external-link">HoverEventSource</a></h3>
<code><ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/event/HoverEventSource.html#asHoverEvent()"title="class or interface in net.kyori.adventure.text.event"class="external-link">asHoverEvent</a></code></div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-org.bukkit.metadata.Metadatable">Methods inherited from interface org.bukkit.metadata.<ahref="../metadata/Metadatable.html"title="interface in org.bukkit.metadata">Metadatable</a></h3>
<h3id="methods-inherited-from-class-org.bukkit.Nameable">Methods inherited from interface org.bukkit.<ahref="../Nameable.html"title="interface in org.bukkit">Nameable</a></h3>
<h3id="methods-inherited-from-class-org.bukkit.permissions.Permissible">Methods inherited from interface org.bukkit.permissions.<ahref="../permissions/Permissible.html"title="interface in org.bukkit.permissions">Permissible</a></h3>
<h3id="methods-inherited-from-class-org.bukkit.persistence.PersistentDataHolder">Methods inherited from interface org.bukkit.persistence.<ahref="../persistence/PersistentDataHolder.html"title="interface in org.bukkit.persistence">PersistentDataHolder</a></h3>
<h3id="methods-inherited-from-class-net.kyori.adventure.pointer.Pointered">Methods inherited from interface net.kyori.adventure.pointer.<ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/pointer/Pointered.html"title="class or interface in net.kyori.adventure.pointer"class="external-link">Pointered</a></h3>
<code><ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/pointer/Pointered.html#get(net.kyori.adventure.pointer.Pointer)"title="class or interface in net.kyori.adventure.pointer"class="external-link">get</a>, <ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/pointer/Pointered.html#getOrDefault(net.kyori.adventure.pointer.Pointer,T)"title="class or interface in net.kyori.adventure.pointer"class="external-link">getOrDefault</a>, <ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/pointer/Pointered.html#getOrDefaultFrom(net.kyori.adventure.pointer.Pointer,java.util.function.Supplier)"title="class or interface in net.kyori.adventure.pointer"class="external-link">getOrDefaultFrom</a>, <ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/pointer/Pointered.html#pointers()"title="class or interface in net.kyori.adventure.pointer"class="external-link">pointers</a></code></div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-org.bukkit.permissions.ServerOperator">Methods inherited from interface org.bukkit.permissions.<ahref="../permissions/ServerOperator.html"title="interface in org.bukkit.permissions">ServerOperator</a></h3>
<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="Entity.html"title="interface in org.bukkit.entity">Entity</a> source)</span></div>
<divclass="block">Deals the given amount of damage to this entity, from a specified
entity.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>amount</code> - Amount of damage to deal</dd>
<dd><code>source</code> - Entity which to attribute this damage from</dd>
<divclass="block">Sets the entity's health from 0 to <ahref="#getMaxHealth()"><code>getMaxHealth()</code></a>, where 0 is
dead.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>health</code> - New health represented from 0 to max</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> - Thrown if the health is < 0 or >
<divclass="block">Sets the entity's absorption amount.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>amount</code> - new absorption amount from 0</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> - thrown if health is < 0 or
non-finite.</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getMaxHealth()">
<h3>getMaxHealth</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">Gets the maximum health this entity has.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>Maximum health</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="setMaxHealth(double)">
<h3>setMaxHealth</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">Sets the maximum health this entity can have.
<p>
If the health of the entity is above the value provided it will be set
to that value.
<p>
Note: An entity with a health bar (<ahref="Player.html"title="interface in org.bukkit.entity"><code>Player</code></a>, <ahref="EnderDragon.html"title="interface in org.bukkit.entity"><code>EnderDragon</code></a>,
<ahref="Wither.html"title="interface in org.bukkit.entity"><code>Wither</code></a>, etc...} will have their bar scaled accordingly.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>health</code> - amount of health to set the maximum to</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="resetMaxHealth()">
<h3>resetMaxHealth</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>