<dd><code><ahref="../attribute/Attributable.html"title="interface in org.bukkit.attribute">Attributable</a></code>, <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="Damageable.html"title="interface in org.bukkit.entity">Damageable</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="../projectiles/ProjectileSource.html"title="interface in org.bukkit.projectiles">ProjectileSource</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="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="Husk.html"title="interface in org.bukkit.entity">Husk</a></code>, <code><ahref="Illager.html"title="inte
extends <ahref="../attribute/Attributable.html"title="interface in org.bukkit.attribute">Attributable</a>, <ahref="Damageable.html"title="interface in org.bukkit.entity">Damageable</a>, <ahref="../projectiles/ProjectileSource.html"title="interface in org.bukkit.projectiles">ProjectileSource</a></span></div>
<divclass="block">Represents a living entity, such as a monster or player</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>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#addPotionEffect(org.bukkit.potion.PotionEffect)"class="member-name-link">addPotionEffect</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="../potion/PotionEffect.html"title="class in org.bukkit.potion">PotionEffect</a> effect)</code></div>
<divclass="block">Adds the given <ahref="../potion/PotionEffect.html"title="class in org.bukkit.potion"><code>PotionEffect</code></a> to the living entity.</div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><ahref="#addPotionEffect(org.bukkit.potion.PotionEffect,boolean)"class="member-name-link">addPotionEffect</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="../potion/PotionEffect.html"title="class in org.bukkit.potion">PotionEffect</a> effect,
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#addPotionEffects(java.util.Collection)"class="member-name-link">addPotionEffects</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="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="../potion/PotionEffect.html"title="class in org.bukkit.potion">PotionEffect</a>> effects)</code></div>
<divclass="block">Attempts to add all of the given <ahref="../potion/PotionEffect.html"title="class in org.bukkit.potion"><code>PotionEffect</code></a> to the living
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#attack(org.bukkit.entity.Entity)"class="member-name-link">attack</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.html"title="interface in org.bukkit.entity">Entity</a> target)</code></div>
<divclass="block">Get's the item being actively "used" or consumed.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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="../potion/PotionEffect.html"title="class in org.bukkit.potion">PotionEffect</a>></code></div>
<divclass="block">Returns all currently active <ahref="../potion/PotionEffect.html"title="class in org.bukkit.potion"><code>PotionEffect</code></a>s on the living
<divclass="block">Gets if the living entity can pick up items.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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="EntityCategory.html"title="enum class in org.bukkit.entity">EntityCategory</a></code></div>
<divclass="block">Get the category to which this entity belongs.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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/Set.html"title="class or interface in java.util"class="external-link">Set</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html"title="class or interface in java.util"class="external-link">UUID</a>></code></div>
<divclass="block">Gets a mutable set of UUIDs of the entities which are exempt from the
entity's collidable rule and which's collision with this entity will
behave the opposite of it.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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="../inventory/EntityEquipment.html"title="interface in org.bukkit.inventory">EntityEquipment</a></code></div>
<divclass="block">Gets the height of the living entity's eyes above its Location.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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="../Location.html"title="class in org.bukkit">Location</a></code></div>
<divclass="block">Get a Location detailing the current eye position of the living entity.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="../inventory/EquipmentSlot.html"title="enum class in org.bukkit.inventory">EquipmentSlot</a></code></div>
<divclass="block">Get's remaining time a player needs to keep hands raised with an item to finish using it.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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="Player.html"title="interface in org.bukkit.entity">Player</a></code></div>
<divclass="block">Returns the living entity's last damage taken in the current no damage
ticks time.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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/List.html"title="class or interface in java.util"class="external-link">List</a><<ahref="../block/Block.html"title="interface in org.bukkit.block">Block</a>></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#getLastTwoTargetBlocks(java.util.Set,int)"class="member-name-link">getLastTwoTargetBlocks</a><wbr>(<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://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html"title="class or interface in java.util"class="external-link">Set</a><<ahref="../Material.html"title="enum class in org.bukkit">Material</a>> transparent,
<divclass="block">Gets the last two blocks along the living entity's line of sight.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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="Entity.html"title="interface in org.bukkit.entity">Entity</a></code></div>
<divclass="block">Gets the entity that is currently leading this entity.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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/List.html"title="class or interface in java.util"class="external-link">List</a><<ahref="../block/Block.html"title="interface in org.bukkit.block">Block</a>></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#getLineOfSight(java.util.Set,int)"class="member-name-link">getLineOfSight</a><wbr>(<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://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html"title="class or interface in java.util"class="external-link">Set</a><<ahref="../Material.html"title="enum class in org.bukkit">Material</a>> transparent,
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#getMemory(org.bukkit.entity.memory.MemoryKey)"class="member-name-link">getMemory</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="memory/MemoryKey.html"title="class in org.bukkit.entity.memory">MemoryKey</a><T> memoryKey)</code></div>
<divclass="block">Returns the living entity's current no damage ticks.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#getPotionEffect(org.bukkit.potion.PotionEffectType)"class="member-name-link">getPotionEffect</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="../potion/PotionEffectType.html"title="class in org.bukkit.potion">PotionEffectType</a> type)</code></div>
<divclass="block">Returns the active <ahref="../potion/PotionEffect.html"title="class in org.bukkit.potion"><code>PotionEffect</code></a> of the specified type.</div>
<divclass="block">Get the delay (in ticks) before blocking is effective for this entity</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default <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="../block/Block.html"title="interface in org.bukkit.block">Block</a></code></div>
<divclass="block">Gets the block that the living entity has targeted, ignoring fluids</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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="../block/Block.html"title="interface in org.bukkit.block">Block</a></code></div>
<ahref="../../../com/destroystokyo/paper/block/TargetBlockInfo.FluidMode.html"title="enum class in com.destroystokyo.paper.block">TargetBlockInfo.FluidMode</a> fluidMode)</code></div>
<divclass="block">Gets the block that the living entity has targeted</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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="../block/Block.html"title="interface in org.bukkit.block">Block</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#getTargetBlock(java.util.Set,int)"class="member-name-link">getTargetBlock</a><wbr>(<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://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html"title="class or interface in java.util"class="external-link">Set</a><<ahref="../Material.html"title="enum class in org.bukkit">Material</a>> transparent,
<divclass="block">Gets the block that the living entity has targeted.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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="../block/Block.html"title="interface in org.bukkit.block">Block</a></code></div>
<divclass="block">Gets the block that the living entity has targeted.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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="../block/Block.html"title="interface in org.bukkit.block">Block</a></code></div>
<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="../FluidCollisionMode.html"title="enum class in org.bukkit">FluidCollisionMode</a> fluidCollisionMode)</code></div>
<divclass="block">Gets the block that the living entity has targeted.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default <ahref="../block/BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a></code></div>
<divclass="block">Gets the blockface of that block that the living entity has targeted, ignoring fluids</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="../block/BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a></code></div>
<ahref="../../../com/destroystokyo/paper/block/TargetBlockInfo.FluidMode.html"title="enum class in com.destroystokyo.paper.block">TargetBlockInfo.FluidMode</a> fluidMode)</code></div>
<ahref="../../../com/destroystokyo/paper/block/TargetBlockInfo.FluidMode.html"title="enum class in com.destroystokyo.paper.block">TargetBlockInfo.FluidMode</a> fluidMode)</code></div>
<divclass="block">Gets information about the block the living entity has targeted</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default <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></code></div>
<divclass="block">Gets information about the entity being targeted</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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="Entity.html"title="interface in org.bukkit.entity">Entity</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#hasLineOfSight(org.bukkit.entity.Entity)"class="member-name-link">hasLineOfSight</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.html"title="interface in org.bukkit.entity">Entity</a> other)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#hasLineOfSight(org.bukkit.Location)"class="member-name-link">hasLineOfSight</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="../Location.html"title="class in org.bukkit">Location</a> location)</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#hasPotionEffect(org.bukkit.potion.PotionEffectType)"class="member-name-link">hasPotionEffect</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="../potion/PotionEffectType.html"title="class in org.bukkit.potion">PotionEffectType</a> type)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><ahref="#playPickupItemAnimation(org.bukkit.entity.Item)"class="member-name-link">playPickupItemAnimation</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="Item.html"title="interface in org.bukkit.entity">Item</a> item)</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#playPickupItemAnimation(org.bukkit.entity.Item,int)"class="member-name-link">playPickupItemAnimation</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="Item.html"title="interface in org.bukkit.entity">Item</a> item,
<divclass="block">Plays pickup item animation towards this entity.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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="../util/RayTraceResult.html"title="class in org.bukkit.util">RayTraceResult</a></code></div>
<divclass="block">Performs a ray trace that provides information on the targeted block.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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="../util/RayTraceResult.html"title="class in org.bukkit.util">RayTraceResult</a></code></div>
<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="../FluidCollisionMode.html"title="enum class in org.bukkit">FluidCollisionMode</a> fluidCollisionMode)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#removePotionEffect(org.bukkit.potion.PotionEffectType)"class="member-name-link">removePotionEffect</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="../potion/PotionEffectType.html"title="class in org.bukkit.potion">PotionEffectType</a> type)</code></div>
<divclass="block">Removes any effects present of the given <ahref="../potion/PotionEffectType.html"title="class in org.bukkit.potion"><code>PotionEffectType</code></a>.</div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#setKiller(org.bukkit.entity.Player)"class="member-name-link">setKiller</a><wbr>(<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="Player.html"title="interface in org.bukkit.entity">Player</a> killer)</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#setLeashHolder(org.bukkit.entity.Entity)"class="member-name-link">setLeashHolder</a><wbr>(<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> holder)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#setMemory(org.bukkit.entity.memory.MemoryKey,T)"class="member-name-link">setMemory</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="memory/MemoryKey.html"title="class in org.bukkit.entity.memory">MemoryKey</a><T> memoryKey,
<divclass="block">Makes this entity swing their off hand.</div>
</div>
</div>
</div>
</div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-org.bukkit.attribute.Attributable">Methods inherited from interface org.bukkit.attribute.<ahref="../attribute/Attributable.html"title="interface in org.bukkit.attribute">Attributable</a></h3>
<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.Damageable">Methods inherited from interface org.bukkit.entity.<ahref="Damageable.html"title="interface in org.bukkit.entity">Damageable</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.projectiles.ProjectileSource">Methods inherited from interface org.bukkit.projectiles.<ahref="../projectiles/ProjectileSource.html"title="interface in org.bukkit.projectiles">ProjectileSource</a></h3>
<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>
<divclass="block">Gets the height of the living entity's eyes above its Location.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>ignorePose</code> - if set to true, the effects of pose changes, eg
sneaking and gliding will be ignored</dd>
<dt>Returns:</dt>
<dd>height of the living entity's eyes above its location</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getEyeLocation()">
<h3>getEyeLocation</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="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="../Location.html"title="class in org.bukkit">Location</a></span> <spanclass="element-name">getEyeLocation</span>()</div>
<divclass="block">Get a Location detailing the current eye position of the living entity.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>a location at the eyes of the living entity</dd>
<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="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/List.html"title="class or interface in java.util"class="external-link">List</a><<ahref="../block/Block.html"title="interface in org.bukkit.block">Block</a>></span> <spanclass="element-name">getLineOfSight</span><wbr><spanclass="parameters">(<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="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html"title="class or interface in java.util"class="external-link">Set</a><<ahref="../Material.html"title="enum class in org.bukkit">Material</a>> transparent,
int maxDistance)</span></div>
<divclass="block">Gets all blocks along the living entity's line of sight.
<p>
This list contains all blocks from the living entity's eye position to
target inclusive. This method considers all blocks as 1x1x1 in size.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>transparent</code> - Set containing all transparent block Materials (set to
null for only air)</dd>
<dd><code>maxDistance</code> - this is the maximum distance to scan (may be limited
by server by at least 100 blocks, no less)</dd>
<dt>Returns:</dt>
<dd>list containing all blocks along the living entity's line of
<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="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="../block/Block.html"title="interface in org.bukkit.block">Block</a></span> <spanclass="element-name">getTargetBlock</span><wbr><spanclass="parameters">(<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="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html"title="class or interface in java.util"class="external-link">Set</a><<ahref="../Material.html"title="enum class in org.bukkit">Material</a>> transparent,
int maxDistance)</span></div>
<divclass="block">Gets the block that the living entity has targeted.
<p>
This method considers all blocks as 1x1x1 in size. To take exact block
collision shapes into account, see <ahref="#getTargetBlockExact(int,org.bukkit.FluidCollisionMode)"><code>getTargetBlockExact(int, FluidCollisionMode)</code></a>.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>transparent</code> - Set containing all transparent block Materials (set to
null for only air)</dd>
<dd><code>maxDistance</code> - this is the maximum distance to scan (may be limited
by server by at least 100 blocks, no less)</dd>
<dt>Returns:</dt>
<dd>block that the living entity has targeted</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getTargetBlock(int)">
<h3>getTargetBlock</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">default</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="../block/Block.html"title="interface in org.bukkit.block">Block</a></span> <spanclass="element-name">getTargetBlock</span><wbr><spanclass="parameters">(int maxDistance)</span></div>
<divclass="block">Gets the block that the living entity has targeted, ignoring fluids</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>maxDistance</code> - this is the maximum distance to scan</dd>
<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="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="../block/Block.html"title="interface in org.bukkit.block">Block</a></span> <spanclass="element-name">getTargetBlock</span><wbr><spanclass="parameters">(int maxDistance,
<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="../../../com/destroystokyo/paper/block/TargetBlockInfo.FluidMode.html"title="enum class in com.destroystokyo.paper.block">TargetBlockInfo.FluidMode</a> fluidMode)</span></div>
<divclass="block">Gets the block that the living entity has targeted</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>maxDistance</code> - this is the maximum distance to scan</dd>
<dd><code>fluidMode</code> - whether to check fluids or not</dd>
<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">default</span> <spanclass="return-type"><ahref="../block/BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a></span> <spanclass="element-name">getTargetBlockFace</span><wbr><spanclass="parameters">(int maxDistance)</span></div>
<divclass="block">Gets the blockface of that block that the living entity has targeted, ignoring fluids</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>maxDistance</code> - this is the maximum distance to scan</dd>
<dt>Returns:</dt>
<dd>blockface of the block that the living entity has targeted,
<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="return-type"><ahref="../block/BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a></span> <spanclass="element-name">getTargetBlockFace</span><wbr><spanclass="parameters">(int maxDistance,
<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="../../../com/destroystokyo/paper/block/TargetBlockInfo.FluidMode.html"title="enum class in com.destroystokyo.paper.block">TargetBlockInfo.FluidMode</a> fluidMode)</span></div>
<divclass="block">Gets the blockface of that block that the living entity has targeted</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>maxDistance</code> - this is the maximum distance to scan</dd>
<dd><code>fluidMode</code> - whether to check fluids or not</dd>
<dt>Returns:</dt>
<dd>blockface of the block that the living entity has targeted,
<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">default</span> <spanclass="return-type"><ahref="../../../com/destroystokyo/paper/block/TargetBlockInfo.html"title="class in com.destroystokyo.paper.block">TargetBlockInfo</a></span> <spanclass="element-name">getTargetBlockInfo</span><wbr><spanclass="parameters">(int maxDistance)</span></div>
<divclass="block">Gets information about the block the living entity has targeted, ignoring fluids</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>maxDistance</code> - this is the maximum distance to scan</dd>
<dt>Returns:</dt>
<dd>TargetBlockInfo about the block the living entity has targeted,
<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="return-type"><ahref="../../../com/destroystokyo/paper/block/TargetBlockInfo.html"title="class in com.destroystokyo.paper.block">TargetBlockInfo</a></span> <spanclass="element-name">getTargetBlockInfo</span><wbr><spanclass="parameters">(int maxDistance,
<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="../../../com/destroystokyo/paper/block/TargetBlockInfo.FluidMode.html"title="enum class in com.destroystokyo.paper.block">TargetBlockInfo.FluidMode</a> fluidMode)</span></div>
<divclass="block">Gets information about the block the living entity has targeted</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>maxDistance</code> - this is the maximum distance to scan</dd>
<dd><code>fluidMode</code> - whether to check fluids or not</dd>
<dt>Returns:</dt>
<dd>TargetBlockInfo about the block the living entity has targeted,
or null if no block is targeted</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getTargetEntity(int)">
<h3>getTargetEntity</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">default</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="Entity.html"title="interface in org.bukkit.entity">Entity</a></span> <spanclass="element-name">getTargetEntity</span><wbr><spanclass="parameters">(int maxDistance)</span></div>
<divclass="block">Gets information about the entity being targeted</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>maxDistance</code> - this is the maximum distance to scan</dd>
<dt>Returns:</dt>
<dd>entity being targeted, or null if no entity is targeted</dd>
<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="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="Entity.html"title="interface in org.bukkit.entity">Entity</a></span> <spanclass="element-name">getTargetEntity</span><wbr><spanclass="parameters">(int maxDistance,
boolean ignoreBlocks)</span></div>
<divclass="block">Gets information about the entity being targeted</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>maxDistance</code> - this is the maximum distance to scan</dd>
<dd><code>ignoreBlocks</code> - true to scan through blocks</dd>
<dt>Returns:</dt>
<dd>entity being targeted, or null if no entity is targeted</dd>
<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">default</span> <spanclass="return-type"><ahref="../../../com/destroystokyo/paper/entity/TargetEntityInfo.html"title="class in com.destroystokyo.paper.entity">TargetEntityInfo</a></span> <spanclass="element-name">getTargetEntityInfo</span><wbr><spanclass="parameters">(int maxDistance)</span></div>
<divclass="block">Gets information about the entity being targeted</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>maxDistance</code> - this is the maximum distance to scan</dd>
<dt>Returns:</dt>
<dd>TargetEntityInfo about the entity being targeted,
<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="return-type"><ahref="../../../com/destroystokyo/paper/entity/TargetEntityInfo.html"title="class in com.destroystokyo.paper.entity">TargetEntityInfo</a></span> <spanclass="element-name">getTargetEntityInfo</span><wbr><spanclass="parameters">(int maxDistance,
boolean ignoreBlocks)</span></div>
<divclass="block">Gets information about the entity being targeted</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>maxDistance</code> - this is the maximum distance to scan</dd>
<dd><code>ignoreBlocks</code> - true to scan through blocks</dd>
<dt>Returns:</dt>
<dd>TargetEntityInfo about the entity being targeted,
<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="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/List.html"title="class or interface in java.util"class="external-link">List</a><<ahref="../block/Block.html"title="interface in org.bukkit.block">Block</a>></span> <spanclass="element-name">getLastTwoTargetBlocks</span><wbr><spanclass="parameters">(<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="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html"title="class or interface in java.util"class="external-link">Set</a><<ahref="../Material.html"title="enum class in org.bukkit">Material</a>> transparent,
int maxDistance)</span></div>
<divclass="block">Gets the last two blocks along the living entity's line of sight.
<p>
The target block will be the last block in the list. This method
considers all blocks as 1x1x1 in size.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>transparent</code> - Set containing all transparent block Materials (set to
null for only air)</dd>
<dd><code>maxDistance</code> - this is the maximum distance to scan. This may be
further limited by the server, but never to less than 100 blocks</dd>
<dt>Returns:</dt>
<dd>list containing the last 2 blocks along the living entity's
<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="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="../block/Block.html"title="interface in org.bukkit.block">Block</a></span> <spanclass="element-name">getTargetBlockExact</span><wbr><spanclass="parameters">(int maxDistance)</span></div>
<divclass="block">Gets the block that the living entity has targeted.
<p>
This takes the blocks' precise collision shapes into account. Fluids are
ignored.
<p>
This may cause loading of chunks! Some implementations may impose
artificial restrictions on the maximum distance.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>maxDistance</code> - the maximum distance to scan</dd>
<dt>Returns:</dt>
<dd>block that the living entity has targeted</dd>
<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="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="../block/Block.html"title="interface in org.bukkit.block">Block</a></span> <spanclass="element-name">getTargetBlockExact</span><wbr><spanclass="parameters">(int maxDistance,
<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="../FluidCollisionMode.html"title="enum class in org.bukkit">FluidCollisionMode</a> fluidCollisionMode)</span></div>
<divclass="block">Gets the block that the living entity has targeted.
<p>
This takes the blocks' precise collision shapes into account.
<p>
This may cause loading of chunks! Some implementations may impose
artificial restrictions on the maximum distance.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>maxDistance</code> - the maximum distance to scan</dd>
<dd><code>fluidCollisionMode</code> - the fluid collision mode</dd>
<dt>Returns:</dt>
<dd>block that the living entity has targeted</dd>
<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="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="../util/RayTraceResult.html"title="class in org.bukkit.util">RayTraceResult</a></span> <spanclass="element-name">rayTraceBlocks</span><wbr><spanclass="parameters">(double maxDistance)</span></div>
<divclass="block">Performs a ray trace that provides information on the targeted block.
<p>
This takes the blocks' precise collision shapes into account. Fluids are
ignored.
<p>
This may cause loading of chunks! Some implementations may impose
artificial restrictions on the maximum distance.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>maxDistance</code> - the maximum distance to scan</dd>
<dt>Returns:</dt>
<dd>information on the targeted block, or <code>null</code> if there
<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="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="../util/RayTraceResult.html"title="class in org.bukkit.util">RayTraceResult</a></span> <spanclass="element-name">rayTraceBlocks</span><wbr><spanclass="parameters">(double maxDistance,
<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="../FluidCollisionMode.html"title="enum class in org.bukkit">FluidCollisionMode</a> fluidCollisionMode)</span></div>
<divclass="block">Performs a ray trace that provides information on the targeted block.
<p>
This takes the blocks' precise collision shapes into account.
<p>
This may cause loading of chunks! Some implementations may impose
artificial restrictions on the maximum distance.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>maxDistance</code> - the maximum distance to scan</dd>
<dd><code>fluidCollisionMode</code> - the fluid collision mode</dd>
<dt>Returns:</dt>
<dd>information on the targeted block, or <code>null</code> if there
<divclass="block">Sets the living entity's current no damage ticks.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>ticks</code> - amount of no damage ticks</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getKiller()">
<h3>getKiller</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="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="Player.html"title="interface in org.bukkit.entity">Player</a></span> <spanclass="element-name">getKiller</span>()</div>
<divclass="block">Gets the player identified as the killer of the living entity.
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">setKiller</span><wbr><spanclass="parameters">(<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="Player.html"title="interface in org.bukkit.entity">Player</a> killer)</span></div>
<divclass="block">Sets the player identified as the killer of the living entity.</div>
<divclass="member-signature"><spanclass="return-type">boolean</span> <spanclass="element-name">addPotionEffect</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="../potion/PotionEffect.html"title="class in org.bukkit.potion">PotionEffect</a> effect)</span></div>
<divclass="block">Adds the given <ahref="../potion/PotionEffect.html"title="class in org.bukkit.potion"><code>PotionEffect</code></a> to the living entity.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>effect</code> - PotionEffect to be added</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="return-type">boolean</span> <spanclass="element-name">addPotionEffect</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="../potion/PotionEffect.html"title="class in org.bukkit.potion">PotionEffect</a> effect,
<divclass="deprecation-comment">no need to force since multiple effects of the same type are
now supported.</div>
</div>
<divclass="block">Adds the given <ahref="../potion/PotionEffect.html"title="class in org.bukkit.potion"><code>PotionEffect</code></a> to the living entity.
<p>
Only one potion effect can be present for a given <ahref="../potion/PotionEffectType.html"title="class in org.bukkit.potion"><code>PotionEffectType</code></a>.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>effect</code> - PotionEffect to be added</dd>
<dd><code>force</code> - whether conflicting effects should be removed</dd>
<divclass="member-signature"><spanclass="return-type">boolean</span> <spanclass="element-name">addPotionEffects</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="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="../potion/PotionEffect.html"title="class in org.bukkit.potion">PotionEffect</a>> effects)</span></div>
<divclass="block">Attempts to add all of the given <ahref="../potion/PotionEffect.html"title="class in org.bukkit.potion"><code>PotionEffect</code></a> to the living
entity.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>effects</code> - the effects to add</dd>
<dt>Returns:</dt>
<dd>whether all of the effects could be added</dd>
<divclass="member-signature"><spanclass="return-type">boolean</span> <spanclass="element-name">hasPotionEffect</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="../potion/PotionEffectType.html"title="class in org.bukkit.potion">PotionEffectType</a> type)</span></div>
<divclass="block">Returns whether the living entity already has an existing effect of
the given <ahref="../potion/PotionEffectType.html"title="class in org.bukkit.potion"><code>PotionEffectType</code></a> applied to it.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>type</code> - the potion type to check</dd>
<dt>Returns:</dt>
<dd>whether the living entity has this potion effect active on them</dd>
<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="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">getPotionEffect</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="../potion/PotionEffectType.html"title="class in org.bukkit.potion">PotionEffectType</a> type)</span></div>
<divclass="block">Returns the active <ahref="../potion/PotionEffect.html"title="class in org.bukkit.potion"><code>PotionEffect</code></a> of the specified type.
<p>
If the effect is not present on the entity then null will be returned.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>type</code> - the potion type to check</dd>
<dt>Returns:</dt>
<dd>the effect active on this entity, or null if not active.</dd>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">removePotionEffect</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="../potion/PotionEffectType.html"title="class in org.bukkit.potion">PotionEffectType</a> type)</span></div>
<divclass="block">Removes any effects present of the given <ahref="../potion/PotionEffectType.html"title="class in org.bukkit.potion"><code>PotionEffectType</code></a>.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>type</code> - the potion type to remove</dd>
<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="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="../potion/PotionEffect.html"title="class in org.bukkit.potion">PotionEffect</a>></span> <spanclass="element-name">getActivePotionEffects</span>()</div>
<divclass="block">Returns all currently active <ahref="../potion/PotionEffect.html"title="class in org.bukkit.potion"><code>PotionEffect</code></a>s on the living
entity.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>a collection of <ahref="../potion/PotionEffect.html"title="class in org.bukkit.potion"><code>PotionEffect</code></a>s</dd>
<divclass="member-signature"><spanclass="return-type">boolean</span> <spanclass="element-name">hasLineOfSight</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.html"title="interface in org.bukkit.entity">Entity</a> other)</span></div>
<divclass="block">Checks whether the living entity has block line of sight to another.
<p>
This uses the same algorithm that hostile mobs use to find the closest
player.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>other</code> - the entity to determine line of sight to</dd>
<dt>Returns:</dt>
<dd>true if there is a line of sight, false if not</dd>
<divclass="member-signature"><spanclass="return-type">boolean</span> <spanclass="element-name">hasLineOfSight</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="../Location.html"title="class in org.bukkit">Location</a> location)</span></div>
<divclass="block">Checks whether the living entity has block line of sight to the given block.
<p>
This uses the same algorithm that hostile mobs use to find the closest
player.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>location</code> - the location to determine line of sight to</dd>
<dt>Returns:</dt>
<dd>true if there is a line of sight, false if not</dd>
<divclass="block">Sets whether or not the living entity despawns when away from players
or not.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>remove</code> - the removal status</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getEquipment()">
<h3>getEquipment</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="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="../inventory/EntityEquipment.html"title="interface in org.bukkit.inventory">EntityEquipment</a></span> <spanclass="element-name">getEquipment</span>()</div>
<divclass="block">Gets the inventory with the equipment worn by the living entity.</div>
<divclass="block">Returns whether the entity is currently leashed.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>whether the entity is leashed</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getLeashHolder()">
<h3>getLeashHolder</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="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="Entity.html"title="interface in org.bukkit.entity">Entity</a></span> <spanclass="element-name">getLeashHolder</span>()
throws <spanclass="exceptions"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalStateException.html"title="class or interface in java.lang"class="external-link">IllegalStateException</a></span></div>
<divclass="block">Gets the entity that is currently leading this entity.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>the entity holding the leash</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalStateException.html"title="class or interface in java.lang"class="external-link">IllegalStateException</a></code> - if not currently leashed</dd>
<divclass="member-signature"><spanclass="return-type">boolean</span> <spanclass="element-name">setLeashHolder</span><wbr><spanclass="parameters">(<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> holder)</span></div>
<divclass="block">Sets the leash on this entity to be held by the supplied entity.
<p>
This method has no effect on EnderDragons, Withers, Players, or Bats.
Non-living entities excluding leashes will not persist as leash
holders.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>holder</code> - the entity to leash this entity to, or null to unleash</dd>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">attack</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.html"title="interface in org.bukkit.entity">Entity</a> target)</span></div>
<divclass="block">Makes this entity attack the given entity with a melee attack.
Attack damage is calculated by the server from the attributes and
equipment of this mob, and knockback is applied to <code>target</code> as
<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="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/Set.html"title="class or interface in java.util"class="external-link">Set</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html"title="class or interface in java.util"class="external-link">UUID</a>></span> <spanclass="element-name">getCollidableExemptions</span>()</div>
<divclass="block">Gets a mutable set of UUIDs of the entities which are exempt from the
entity's collidable rule and which's collision with this entity will
behave the opposite of it.
<p>
This set can be modified to add or remove exemptions.
<p>
For example if collidable is true and an entity is in the exemptions set
then it will not collide with it. Similarly if collidable is false and an
entity is in this set then it will still collide with it.
<p>
Note these exemptions are not (currently) persistent.</div>
<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="type-parameters"><T></span> <spanclass="return-type">T</span> <spanclass="element-name">getMemory</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="memory/MemoryKey.html"title="class in org.bukkit.entity.memory">MemoryKey</a><T> memoryKey)</span></div>
<divclass="block">Returns the value of the memory specified.
<p>
Note that the value is null when the specific entity does not have that
value by default.</div>
<dlclass="notes">
<dt>Type Parameters:</dt>
<dd><code>T</code> - the type of the return value</dd>
<dt>Parameters:</dt>
<dd><code>memoryKey</code> - memory to access</dd>
<dt>Returns:</dt>
<dd>a instance of the memory section value or null if not present</dd>
<divclass="member-signature"><spanclass="type-parameters"><T></span> <spanclass="return-type">void</span> <spanclass="element-name">setMemory</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="memory/MemoryKey.html"title="class in org.bukkit.entity.memory">MemoryKey</a><T> memoryKey,
<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>
T memoryValue)</span></div>
<divclass="block">Sets the value of the memory specified.
<p>
Note that the value will not be persisted when the specific entity does
not have that value by default.</div>
<dlclass="notes">
<dt>Type Parameters:</dt>
<dd><code>T</code> - the type of the passed value</dd>
<dt>Parameters:</dt>
<dd><code>memoryKey</code> - the memory to access</dd>
<dd><code>memoryValue</code> - a typed memory value</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getCategory()">
<h3>getCategory</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="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="EntityCategory.html"title="enum class in org.bukkit.entity">EntityCategory</a></span> <spanclass="element-name">getCategory</span>()</div>
<divclass="block">Get the category to which this entity belongs.
Categories may subject this entity to additional effects, benefits or
<divclass="block">Set the delay (in ticks) before blocking is effective for this entity</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>delay</code> - Delay in ticks</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getActiveItem()">
<h3>getActiveItem</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="return-type"><ahref="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a></span> <spanclass="element-name">getActiveItem</span>()</div>
<divclass="block">Get's the item being actively "used" or consumed.</div>
<divclass="block">Whether or not this entity is using or charging an attack (Bow pulled back, drinking potion, eating food)</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>Whether or not this entity is using or charging an attack (Bow pulled back, drinking potion, eating food)</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getHandRaised()">
<h3>getHandRaised</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="return-type"><ahref="../inventory/EquipmentSlot.html"title="enum class in org.bukkit.inventory">EquipmentSlot</a></span> <spanclass="element-name">getHandRaised</span>()</div>
<divclass="block">Gets the hand raised by this living entity. Will be either
<ahref="../inventory/EquipmentSlot.html#HAND"><code>EquipmentSlot.HAND</code></a> or
<divclass="member-signature"><spanclass="modifiers">default</span> <spanclass="return-type">void</span> <spanclass="element-name">playPickupItemAnimation</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="Item.html"title="interface in org.bukkit.entity">Item</a> item)</span></div>
<divclass="block">Plays pickup item animation towards this entity.
<p>
<b>This will remove the item on the client.</b>
<p>
Quantity is inferred to be that of the <ahref="Item.html"title="interface in org.bukkit.entity"><code>Item</code></a>.</div>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">playPickupItemAnimation</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="Item.html"title="interface in org.bukkit.entity">Item</a> item,
int quantity)</span></div>
<divclass="block">Plays pickup item animation towards this entity.
<p>
<b>This will remove the item on the client.</b></div>