mirror of
https://github.com/AtlasMediaGroup/Scissors-Website.git
synced 2024-09-06 07:48:13 +00:00
1862 lines
178 KiB
HTML
1862 lines
178 KiB
HTML
|
<!DOCTYPE HTML>
|
|||
|
<html lang="en">
|
|||
|
<head>
|
|||
|
<!-- Generated by javadoc (17) -->
|
|||
|
<title>Entity (Scissors-API 1.19-R0.1-SNAPSHOT API)</title>
|
|||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|||
|
<meta name="description" content="declaration: package: org.bukkit.entity, interface: Entity">
|
|||
|
<meta name="generator" content="javadoc/ClassWriterImpl">
|
|||
|
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
|||
|
<link rel="stylesheet" type="text/css" href="../../../script-dir/jquery-ui.min.css" title="Style">
|
|||
|
<link rel="stylesheet" type="text/css" href="../../../jquery-ui.overrides.css" title="Style">
|
|||
|
<script type="text/javascript" src="../../../script.js"></script>
|
|||
|
<script type="text/javascript" src="../../../script-dir/jquery-3.5.1.min.js"></script>
|
|||
|
<script type="text/javascript" src="../../../script-dir/jquery-ui.min.js"></script>
|
|||
|
</head>
|
|||
|
<body class="class-declaration-page">
|
|||
|
<script type="text/javascript">var evenRowColor = "even-row-color";
|
|||
|
var oddRowColor = "odd-row-color";
|
|||
|
var tableTab = "table-tab";
|
|||
|
var activeTableTab = "active-table-tab";
|
|||
|
var pathtoroot = "../../../";
|
|||
|
loadScripts(document, 'script');</script>
|
|||
|
<noscript>
|
|||
|
<div>JavaScript is disabled on your browser.</div>
|
|||
|
</noscript>
|
|||
|
<div class="flex-box">
|
|||
|
<header role="banner" class="flex-header">
|
|||
|
<nav role="navigation">
|
|||
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|||
|
<div class="top-nav" id="navbar-top">
|
|||
|
<div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div>
|
|||
|
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
|
|||
|
<li><a href="../../../index.html">Overview</a></li>
|
|||
|
<li><a href="package-summary.html">Package</a></li>
|
|||
|
<li class="nav-bar-cell1-rev">Class</li>
|
|||
|
<li><a href="package-tree.html">Tree</a></li>
|
|||
|
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
|
|||
|
<li><a href="../../../index-all.html">Index</a></li>
|
|||
|
<li><a href="../../../help-doc.html#class">Help</a></li>
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
<div class="sub-nav">
|
|||
|
<div>
|
|||
|
<ul class="sub-nav-list">
|
|||
|
<li>Summary: </li>
|
|||
|
<li><a href="#nested-class-summary">Nested</a> | </li>
|
|||
|
<li>Field | </li>
|
|||
|
<li>Constr | </li>
|
|||
|
<li><a href="#method-summary">Method</a></li>
|
|||
|
</ul>
|
|||
|
<ul class="sub-nav-list">
|
|||
|
<li>Detail: </li>
|
|||
|
<li>Field | </li>
|
|||
|
<li>Constr | </li>
|
|||
|
<li><a href="#method-detail">Method</a></li>
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
<div class="nav-list-search"><label for="search-input">SEARCH:</label>
|
|||
|
<input type="text" id="search-input" value="search" disabled="disabled">
|
|||
|
<input type="reset" id="reset-button" value="reset" disabled="disabled">
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|||
|
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
|||
|
</header>
|
|||
|
<div class="flex-content">
|
|||
|
<main role="main">
|
|||
|
<!-- ======== START OF CLASS DATA ======== -->
|
|||
|
<div class="header">
|
|||
|
<div class="sub-title"><span class="package-label-in-type">Package</span> <a href="package-summary.html">org.bukkit.entity</a></div>
|
|||
|
<h1 title="Interface Entity" class="title">Interface Entity</h1>
|
|||
|
</div>
|
|||
|
<section class="class-description" id="class-description">
|
|||
|
<dl class="notes">
|
|||
|
<dt>All Superinterfaces:</dt>
|
|||
|
<dd><code><a href="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><a href="../command/CommandSender.html" title="interface in org.bukkit.command">CommandSender</a></code>, <code><a href="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><<a href="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><a href="../metadata/Metadatable.html" title="interface in org.bukkit.metadata">Metadatable</a></code>, <code><a href="../Nameable.html" title="interface in org.bukkit">Nameable</a></code>, <code><a href="../permissions/Permissible.html" title="interface in org.bukkit.permissions">Permissible</a></code>, <code><a href="../persistence/PersistentDataHolder.html" title="interface in org.bukkit.persistence">PersistentDataHolder</a></code>, <code><a href="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><a href="../permissions/ServerOperator.html" title="interface in org.bukkit.permissions">ServerOperator</a></code>, <code><a href="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>
|
|||
|
<dl class="notes">
|
|||
|
<dt>All Known Subinterfaces:</dt>
|
|||
|
<dd><code><a href="AbstractArrow.html" title="interface in org.bukkit.entity">AbstractArrow</a></code>, <code><a href="AbstractHorse.html" title="interface in org.bukkit.entity">AbstractHorse</a></code>, <code><a href="AbstractSkeleton.html" title="interface in org.bukkit.entity">AbstractSkeleton</a></code>, <code><a href="AbstractVillager.html" title="interface in org.bukkit.entity">AbstractVillager</a></code>, <code><a href="Ageable.html" title="interface in org.bukkit.entity">Ageable</a></code>, <code><a href="Allay.html" title="interface in org.bukkit.entity">Allay</a></code>, <code><a href="Ambient.html" title="interface in org.bukkit.entity">Ambient</a></code>, <code><a href="Animals.html" title="interface in org.bukkit.entity">Animals</a></code>, <code><a href="AreaEffectCloud.html" title="interface in org.bukkit.entity">AreaEffectCloud</a></code>, <code><a href="ArmorStand.html" title="interface in org.bukkit.entity">ArmorStand</a></code>, <code><a href="Arrow.html" title="interface in org.bukkit.entity">Arrow</a></code>, <code><a href="Axolotl.html" title="interface in org.bukkit.entity">Axolotl</a></code>, <code><a href="Bat.html" title="interface in org.bukkit.entity">Bat</a></code>, <code><a href="Bee.html" title="interface in org.bukkit.entity">Bee</a></code>, <code><a href="Blaze.html" title="interface in org.bukkit.entity">Blaze</a></code>, <code><a href="Boat.html" title="interface in org.bukkit.entity">Boat</a></code>, <code><a href="Boss.html" title="interface in org.bukkit.entity">Boss</a></code>, <code><a href="Breedable.html" title="interface in org.bukkit.entity">Breedable</a></code>, <code><a href="../../../io/papermc/paper/entity/Bucketable.html" title="interface in io.papermc.paper.entity">Bucketable</a></code>, <code><a href="Cat.html" title="interface in org.bukkit.entity">Cat</a></code>, <code><a href="CaveSpider.html" title="interface in org.bukkit.entity">CaveSpider</a></code>, <code><a href="ChestBoat.html" title="interface in org.bukkit.entity">ChestBoat</a></code>, <code><a href="ChestedHorse.html" title="interface in org.bukkit.entity">ChestedHorse</a></code>, <code><a href="Chicken.html" title="interface in org.bukkit.entity">Chicken</a></code>, <code><a href="Cod.html" title="interface in org.bukkit.entity">Cod</a></code>, <code><a href="../../../io/papermc/paper/entity/CollarColorable.html" title="interface in io.papermc.paper.entity">CollarColorable</a></code>, <code><a href="minecart/CommandMinecart.html" title="interface in org.bukkit.entity.minecart">CommandMinecart</a></code>, <code><a href="ComplexEntityPart.html" title="interface in org.bukkit.entity">ComplexEntityPart</a></code>, <code><a href="ComplexLivingEntity.html" title="interface in org.bukkit.entity">ComplexLivingEntity</a></code>, <code><a href="Cow.html" title="interface in org.bukkit.entity">Cow</a></code>, <code><a href="Creature.html" title="interface in org.bukkit.entity">Creature</a></code>, <code><a href="Creeper.html" title="interface in org.bukkit.entity">Creeper</a></code>, <code><a href="Damageable.html" title="interface in org.bukkit.entity">Damageable</a></code>, <code><a href="Dolphin.html" title="interface in org.bukkit.entity">Dolphin</a></code>, <code><a href="Donkey.html" title="interface in org.bukkit.entity">Donkey</a></code>, <code><a href="DragonFireball.html" title="interface in org.bukkit.entity">DragonFireball</a></code>, <code><a href="Drowned.html" title="interface in org.bukkit.entity">Drowned</a></code>, <code><a href="Egg.html" title="interface in org.bukkit.entity">Egg</a></code>, <code><a href="ElderGuardian.html" title="interface in org.bukkit.entity">ElderGuardian</a></code>, <code><a href="EnderCrystal.html" title="interface in org.bukkit.entity">EnderCrystal</a></code>, <code><a href="EnderDragon.html" title="interface in org.bukkit.entity">EnderDragon</a></code>, <code><a href="EnderDragonPart.html" title="interface in org.bukkit.entity">EnderDragonPart</a></code>, <code><a href="Enderman.html" title="interface in org.bukkit.entity">Enderman</a></code>, <code><a href="Endermite.ht
|
|||
|
</dl>
|
|||
|
<hr>
|
|||
|
<div class="type-signature"><span class="modifiers">public interface </span><span class="element-name type-name-label">Entity</span><span class="extends-implements">
|
|||
|
extends <a href="../metadata/Metadatable.html" title="interface in org.bukkit.metadata">Metadatable</a>, <a href="../command/CommandSender.html" title="interface in org.bukkit.command">CommandSender</a>, <a href="../Nameable.html" title="interface in org.bukkit">Nameable</a>, <a href="../persistence/PersistentDataHolder.html" title="interface in org.bukkit.persistence">PersistentDataHolder</a>, <a href="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><<a href="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>>, <a href="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></span></div>
|
|||
|
<div class="block">Represents a base entity in the world</div>
|
|||
|
</section>
|
|||
|
<section class="summary">
|
|||
|
<ul class="summary-list">
|
|||
|
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
|||
|
<li>
|
|||
|
<section class="nested-class-summary" id="nested-class-summary">
|
|||
|
<h2>Nested Class Summary</h2>
|
|||
|
<div class="caption"><span>Nested Classes</span></div>
|
|||
|
<div class="summary-table three-column-summary">
|
|||
|
<div class="table-header col-first">Modifier and Type</div>
|
|||
|
<div class="table-header col-second">Interface</div>
|
|||
|
<div class="table-header col-last">Description</div>
|
|||
|
<div class="col-first even-row-color"><code>static class </code></div>
|
|||
|
<div class="col-second even-row-color"><code><a href="Entity.Spigot.html" class="type-name-link" title="class in org.bukkit.entity">Entity.Spigot</a></code></div>
|
|||
|
<div class="col-last even-row-color"> </div>
|
|||
|
</div>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<!-- ========== METHOD SUMMARY =========== -->
|
|||
|
<li>
|
|||
|
<section class="method-summary" id="method-summary">
|
|||
|
<h2>Method Summary</h2>
|
|||
|
<div id="method-summary-table">
|
|||
|
<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">All Methods</button><button id="method-summary-table-tab2" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" class="table-tab">Instance Methods</button><button id="method-summary-table-tab3" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab3', 3)" class="table-tab">Abstract Methods</button><button id="method-summary-table-tab5" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab5', 3)" class="table-tab">Default Methods</button><button id="method-summary-table-tab6" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab6', 3)" class="table-tab">Deprecated Methods</button></div>
|
|||
|
<div id="method-summary-table.tabpanel" role="tabpanel">
|
|||
|
<div class="summary-table three-column-summary" aria-labelledby="method-summary-table-tab0">
|
|||
|
<div class="table-header col-first">Modifier and Type</div>
|
|||
|
<div class="table-header col-second">Method</div>
|
|||
|
<div class="table-header col-last">Description</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#addPassenger(org.bukkit.entity.Entity)" class="member-name-link">addPassenger</a><wbr>(<a href="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> <a href="Entity.html" title="interface in org.bukkit.entity">Entity</a> passenger)</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Add a passenger to the vehicle.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#addScoreboardTag(java.lang.String)" class="member-name-link">addScoreboardTag</a><wbr>(<a href="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> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> tag)</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Add a tag to this entity.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default <a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/event/HoverEvent.html" title="class or interface in net.kyori.adventure.text.event" class="external-link">HoverEvent</a><<a href="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></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#asHoverEvent(java.util.function.UnaryOperator)" class="member-name-link">asHoverEvent</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/UnaryOperator.html" title="class or interface in java.util.function" class="external-link">UnaryOperator</a><<a href="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>> op)</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
|
|||
|
<div class="block">Creates a hover event with value derived from this object.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#eject()" class="member-name-link">eject</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Eject any passenger.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#fromMobSpawner()" class="member-name-link">fromMobSpawner</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Returns whether this entity was spawned from a mob spawner.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="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> <a href="../util/BoundingBox.html" title="class in org.bukkit.util">BoundingBox</a></code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getBoundingBox()" class="member-name-link">getBoundingBox</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Gets the entity's current bounding box.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default <a href="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> <a href="../Chunk.html" title="interface in org.bukkit">Chunk</a></code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#getChunk()" class="member-name-link">getChunk</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
|
|||
|
<div class="block">Gets the latest chunk an entity is currently or was in.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>int</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getEntityId()" class="member-name-link">getEntityId</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Returns a unique id for this entity</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="../event/entity/CreatureSpawnEvent.SpawnReason.html" title="enum class in org.bukkit.event.entity">CreatureSpawnEvent.SpawnReason</a></code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getEntitySpawnReason()" class="member-name-link">getEntitySpawnReason</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"> </div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="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> <a href="../block/BlockFace.html" title="enum class in org.bukkit.block">BlockFace</a></code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getFacing()" class="member-name-link">getFacing</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Get the closest cardinal <a href="../block/BlockFace.html" title="enum class in org.bukkit.block"><code>BlockFace</code></a> direction an entity is
|
|||
|
currently facing.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>float</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getFallDistance()" class="member-name-link">getFallDistance</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Returns the distance this entity has fallen</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>int</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getFireTicks()" class="member-name-link">getFireTicks</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Returns the entity's current fire ticks (ticks before the entity stops
|
|||
|
being on fire).</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>int</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getFreezeTicks()" class="member-name-link">getFreezeTicks</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Returns the entity's current freeze ticks (amount of ticks the entity has
|
|||
|
been in powdered snow).</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>double</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getHeight()" class="member-name-link">getHeight</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Gets the entity's height</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="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> <a href="../event/entity/EntityDamageEvent.html" title="class in org.bukkit.event.entity">EntityDamageEvent</a></code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getLastDamageCause()" class="member-name-link">getLastDamageCause</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Retrieve the last <a href="../event/entity/EntityDamageEvent.html" title="class in org.bukkit.event.entity"><code>EntityDamageEvent</code></a> inflicted on this entity.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="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> <a href="../Location.html" title="class in org.bukkit">Location</a></code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getLocation()" class="member-name-link">getLocation</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Gets the entity's current position</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="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> <a href="../Location.html" title="class in org.bukkit">Location</a></code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getLocation(org.bukkit.Location)" class="member-name-link">getLocation</a><wbr>(<a href="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> <a href="../Location.html" title="class in org.bukkit">Location</a> loc)</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Stores the entity's current position in the provided Location object.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>int</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getMaxFireTicks()" class="member-name-link">getMaxFireTicks</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Returns the entity's maximum fire ticks.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>int</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getMaxFreezeTicks()" class="member-name-link">getMaxFreezeTicks</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Returns the entity's maximum freeze ticks (amount of ticks before it will
|
|||
|
be fully frozen)</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="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> <a href="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><<a href="Entity.html" title="interface in org.bukkit.entity">Entity</a>></code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getNearbyEntities(double,double,double)" class="member-name-link">getNearbyEntities</a><wbr>(double x,
|
|||
|
double y,
|
|||
|
double z)</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Returns a list of entities within a bounding box centered around this
|
|||
|
entity</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="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> <a href="../Location.html" title="class in org.bukkit">Location</a></code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getOrigin()" class="member-name-link">getOrigin</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Gets the location where this entity originates from.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="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> <a href="Entity.html" title="interface in org.bukkit.entity">Entity</a></code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#getPassenger()" class="member-name-link">getPassenger</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|||
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
|||
|
<div class="deprecation-comment">entities may have multiple passengers, use
|
|||
|
<a href="#getPassengers()"><code>getPassengers()</code></a></div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="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> <a href="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><<a href="Entity.html" title="interface in org.bukkit.entity">Entity</a>></code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getPassengers()" class="member-name-link">getPassengers</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Gets a list of passengers of this vehicle.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="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> <a href="../block/PistonMoveReaction.html" title="enum class in org.bukkit.block">PistonMoveReaction</a></code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getPistonMoveReaction()" class="member-name-link">getPistonMoveReaction</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Returns the reaction of the entity when moved by a piston.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>int</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getPortalCooldown()" class="member-name-link">getPortalCooldown</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Gets the period of time (in ticks) before this entity can use a portal.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="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> <a href="Pose.html" title="enum class in org.bukkit.entity">Pose</a></code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getPose()" class="member-name-link">getPose</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Gets the entity's current pose.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="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> <a href="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><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>></code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getScoreboardTags()" class="member-name-link">getScoreboardTags</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Returns a set of tags for this entity.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="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> <a href="../Server.html" title="interface in org.bukkit">Server</a></code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getServer()" class="member-name-link">getServer</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Gets the <a href="../Server.html" title="interface in org.bukkit"><code>Server</code></a> that contains this Entity</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="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> <a href="SpawnCategory.html" title="enum class in org.bukkit.entity">SpawnCategory</a></code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getSpawnCategory()" class="member-name-link">getSpawnCategory</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Get the category of spawn to which this entity belongs.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>int</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getTicksLived()" class="member-name-link">getTicksLived</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Gets the amount of ticks this entity has lived for.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="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> <a href="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><<a href="Player.html" title="interface in org.bukkit.entity">Player</a>></code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getTrackedPlayers()" class="member-name-link">getTrackedPlayers</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Returns a set of <a href="Player.html" title="interface in org.bukkit.entity"><code>Players</code></a> within this entity's tracking range (players that can "see" this entity).</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="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> <a href="EntityType.html" title="enum class in org.bukkit.entity">EntityType</a></code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getType()" class="member-name-link">getType</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Get the type of the entity.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="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> <a href="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>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getUniqueId()" class="member-name-link">getUniqueId</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Returns a unique and persistent id for this entity</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="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> <a href="Entity.html" title="interface in org.bukkit.entity">Entity</a></code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getVehicle()" class="member-name-link">getVehicle</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Get the vehicle that this player is inside.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="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> <a href="../util/Vector.html" title="class in org.bukkit.util">Vector</a></code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getVelocity()" class="member-name-link">getVelocity</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Gets this entity's current velocity</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>double</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getWidth()" class="member-name-link">getWidth</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Gets the entity's width</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="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> <a href="../World.html" title="interface in org.bukkit">World</a></code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getWorld()" class="member-name-link">getWorld</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Gets the current world this entity resides in</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#hasGravity()" class="member-name-link">hasGravity</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Returns whether gravity applies to this entity.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#isCustomNameVisible()" class="member-name-link">isCustomNameVisible</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Gets whether or not the mob's custom name is displayed client side.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#isDead()" class="member-name-link">isDead</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Returns true if this entity has been marked for removal.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#isEmpty()" class="member-name-link">isEmpty</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Check if a vehicle has passengers.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#isFreezeTickingLocked()" class="member-name-link">isFreezeTickingLocked</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Gets if the entity currently has its freeze ticks locked
|
|||
|
to a set amount.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#isFrozen()" class="member-name-link">isFrozen</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Gets if the entity is fully frozen (it has been in powdered snow for max
|
|||
|
freeze ticks).</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#isGlowing()" class="member-name-link">isGlowing</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Gets whether the entity is glowing or not.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#isInBubbleColumn()" class="member-name-link">isInBubbleColumn</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Check if entity is in bubble column</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#isInLava()" class="member-name-link">isInLava</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Check if entity is in lava</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#isInPowderedSnow()" class="member-name-link">isInPowderedSnow</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Check if entity is inside powdered snow.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#isInRain()" class="member-name-link">isInRain</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Check if entity is in rain</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#isInsideVehicle()" class="member-name-link">isInsideVehicle</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Returns whether this entity is inside a vehicle.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#isInvulnerable()" class="member-name-link">isInvulnerable</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Gets whether the entity is invulnerable or not.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#isInWater()" class="member-name-link">isInWater</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Returns true if the entity is in water.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#isInWaterOrBubbleColumn()" class="member-name-link">isInWaterOrBubbleColumn</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Check if entity is in water or bubble column</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#isInWaterOrRain()" class="member-name-link">isInWaterOrRain</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Check if entity is in water or rain</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#isInWaterOrRainOrBubbleColumn()" class="member-name-link">isInWaterOrRainOrBubbleColumn</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Check if entity is in water or rain or bubble column</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#isOnGround()" class="member-name-link">isOnGround</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Returns true if the entity is supported by a block.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#isPersistent()" class="member-name-link">isPersistent</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Returns true if the entity gets persisted.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#isSilent()" class="member-name-link">isSilent</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Gets whether the entity is silent or not.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#isTicking()" class="member-name-link">isTicking</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Check if entity is inside a ticking chunk</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#isValid()" class="member-name-link">isValid</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Returns false if the entity has died or been despawned for some other
|
|||
|
reason.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#isVisualFire()" class="member-name-link">isVisualFire</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Gets if the entity has visual fire (it will always appear to be on fire).</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#leaveVehicle()" class="member-name-link">leaveVehicle</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Leave the current vehicle.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#lockFreezeTicks(boolean)" class="member-name-link">lockFreezeTicks</a><wbr>(boolean locked)</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Sets if the entity currently has its freeze ticks locked,
|
|||
|
preventing default vanilla freeze tick modification.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#playEffect(org.bukkit.EntityEffect)" class="member-name-link">playEffect</a><wbr>(<a href="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> <a href="../EntityEffect.html" title="enum class in org.bukkit">EntityEffect</a> type)</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Performs the specified <a href="../EntityEffect.html" title="enum class in org.bukkit"><code>EntityEffect</code></a> for this entity.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#remove()" class="member-name-link">remove</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Mark the entity's removal.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#removePassenger(org.bukkit.entity.Entity)" class="member-name-link">removePassenger</a><wbr>(<a href="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> <a href="Entity.html" title="interface in org.bukkit.entity">Entity</a> passenger)</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Remove a passenger from the vehicle.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#removeScoreboardTag(java.lang.String)" class="member-name-link">removeScoreboardTag</a><wbr>(<a href="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> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> tag)</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Removes a given tag from this entity.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#setCustomNameVisible(boolean)" class="member-name-link">setCustomNameVisible</a><wbr>(boolean flag)</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Sets whether or not to display the mob's custom name client side.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#setFallDistance(float)" class="member-name-link">setFallDistance</a><wbr>(float distance)</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Sets the fall distance for this entity</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#setFireTicks(int)" class="member-name-link">setFireTicks</a><wbr>(int ticks)</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Sets the entity's current fire ticks (ticks before the entity stops
|
|||
|
being on fire).</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#setFreezeTicks(int)" class="member-name-link">setFreezeTicks</a><wbr>(int ticks)</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Sets the entity's current freeze ticks (amount of ticks the entity has
|
|||
|
been in powdered snow).</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#setGlowing(boolean)" class="member-name-link">setGlowing</a><wbr>(boolean flag)</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Sets whether the entity has a team colored (default: white) glow.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#setGravity(boolean)" class="member-name-link">setGravity</a><wbr>(boolean gravity)</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Sets whether gravity applies to this entity.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#setInvulnerable(boolean)" class="member-name-link">setInvulnerable</a><wbr>(boolean flag)</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Sets whether the entity is invulnerable or not.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#setLastDamageCause(org.bukkit.event.entity.EntityDamageEvent)" class="member-name-link">setLastDamageCause</a><wbr>(<a href="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> <a href="../event/entity/EntityDamageEvent.html" title="class in org.bukkit.event.entity">EntityDamageEvent</a> event)</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Record the last <a href="../event/entity/EntityDamageEvent.html" title="class in org.bukkit.event.entity"><code>EntityDamageEvent</code></a> inflicted on this entity</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code>boolean</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#setPassenger(org.bukkit.entity.Entity)" class="member-name-link">setPassenger</a><wbr>(<a href="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> <a href="Entity.html" title="interface in org.bukkit.entity">Entity</a> passenger)</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|||
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
|||
|
<div class="deprecation-comment">entities may have multiple passengers, use
|
|||
|
<a href="#addPassenger(org.bukkit.entity.Entity)"><code>addPassenger(org.bukkit.entity.Entity)</code></a></div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#setPersistent(boolean)" class="member-name-link">setPersistent</a><wbr>(boolean persistent)</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Sets whether or not the entity gets persisted.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#setPortalCooldown(int)" class="member-name-link">setPortalCooldown</a><wbr>(int cooldown)</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Sets the period of time (in ticks) before this entity can use a portal.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#setRotation(float,float)" class="member-name-link">setRotation</a><wbr>(float yaw,
|
|||
|
float pitch)</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Sets the entity's rotation.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#setSilent(boolean)" class="member-name-link">setSilent</a><wbr>(boolean flag)</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Sets whether the entity is silent or not.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#setTicksLived(int)" class="member-name-link">setTicksLived</a><wbr>(int value)</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Sets the amount of ticks this entity has lived for.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#setVelocity(org.bukkit.util.Vector)" class="member-name-link">setVelocity</a><wbr>(<a href="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> <a href="../util/Vector.html" title="class in org.bukkit.util">Vector</a> velocity)</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Sets this entity's velocity in meters per tick</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#setVisualFire(boolean)" class="member-name-link">setVisualFire</a><wbr>(boolean fire)</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Sets if the entity has visual fire (it will always appear to be on fire).</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default boolean</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#spawnAt(org.bukkit.Location)" class="member-name-link">spawnAt</a><wbr>(<a href="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> <a href="../Location.html" title="class in org.bukkit">Location</a> location)</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
|
|||
|
<div class="block">Spawns the entity in the world at the given <a href="../Location.html" title="class in org.bukkit"><code>Location</code></a> with the default spawn reason.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#spawnAt(org.bukkit.Location,org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason)" class="member-name-link">spawnAt</a><wbr>(<a href="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> <a href="../Location.html" title="class in org.bukkit">Location</a> location,
|
|||
|
<a href="../event/entity/CreatureSpawnEvent.SpawnReason.html" title="enum class in org.bukkit.event.entity">CreatureSpawnEvent.SpawnReason</a> reason)</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Spawns the entity in the world at the given <a href="../Location.html" title="class in org.bukkit"><code>Location</code></a> with the reason given.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="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> <a href="Entity.Spigot.html" title="class in org.bukkit.entity">Entity.Spigot</a></code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#spigot()" class="member-name-link">spigot</a>()</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"> </div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a></code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#teamDisplayName()" class="member-name-link">teamDisplayName</a>()</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Gets the entity's display name formatted with their team prefix/suffix and
|
|||
|
the entity's default hover/click events.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#teleport(org.bukkit.entity.Entity)" class="member-name-link">teleport</a><wbr>(<a href="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> <a href="Entity.html" title="interface in org.bukkit.entity">Entity</a> destination)</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Teleports this entity to the target Entity.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#teleport(org.bukkit.entity.Entity,org.bukkit.event.player.PlayerTeleportEvent.TeleportCause)" class="member-name-link">teleport</a><wbr>(<a href="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> <a href="Entity.html" title="interface in org.bukkit.entity">Entity</a> destination,
|
|||
|
<a href="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> <a href="../event/player/PlayerTeleportEvent.TeleportCause.html" title="enum class in org.bukkit.event.player">PlayerTeleportEvent.TeleportCause</a> cause)</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Teleports this entity to the target Entity.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#teleport(org.bukkit.Location)" class="member-name-link">teleport</a><wbr>(<a href="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> <a href="../Location.html" title="class in org.bukkit">Location</a> location)</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Teleports this entity to the given location.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#teleport(org.bukkit.Location,org.bukkit.event.player.PlayerTeleportEvent.TeleportCause)" class="member-name-link">teleport</a><wbr>(<a href="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> <a href="../Location.html" title="class in org.bukkit">Location</a> location,
|
|||
|
<a href="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> <a href="../event/player/PlayerTeleportEvent.TeleportCause.html" title="enum class in org.bukkit.event.player">PlayerTeleportEvent.TeleportCause</a> cause)</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|||
|
<div class="block">Teleports this entity to the given location.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/concurrent/CompletableFuture.html" title="class or interface in java.util.concurrent" class="external-link">CompletableFuture</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#teleportAsync(org.bukkit.Location)" class="member-name-link">teleportAsync</a><wbr>(<a href="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> <a href="../Location.html" title="class in org.bukkit">Location</a> loc)</code></div>
|
|||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
|
|||
|
<div class="block">Loads/Generates(in 1.13+) the Chunk asynchronously, and then teleports the entity when the chunk is ready.</div>
|
|||
|
</div>
|
|||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/concurrent/CompletableFuture.html" title="class or interface in java.util.concurrent" class="external-link">CompletableFuture</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#teleportAsync(org.bukkit.Location,org.bukkit.event.player.PlayerTeleportEvent.TeleportCause)" class="member-name-link">teleportAsync</a><wbr>(<a href="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> <a href="../Location.html" title="class in org.bukkit">Location</a> loc,
|
|||
|
<a href="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> <a href="../event/player/PlayerTeleportEvent.TeleportCause.html" title="enum class in org.bukkit.event.player">PlayerTeleportEvent.TeleportCause</a> cause)</code></div>
|
|||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
|
|||
|
<div class="block">Loads/Generates(in 1.13+) the Chunk asynchronously, and then teleports the entity when the chunk is ready.</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="inherited-list">
|
|||
|
<h3 id="methods-inherited-from-class-net.kyori.adventure.audience.Audience">Methods inherited from interface net.kyori.adventure.audience.<a href="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><a href="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>, <a href="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>, <a href="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>, <a href="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>, <a href="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>, <a href="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>, <a href="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>, <a href="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>, <a href="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>, <a href="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>, <a href="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>, <a href="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>, <a href="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>, <a href="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>, <a href="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>, <a href="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>, <a hr
|
|||
|
<div class="inherited-list">
|
|||
|
<h3 id="methods-inherited-from-class-org.bukkit.command.CommandSender">Methods inherited from interface org.bukkit.command.<a href="../command/CommandSender.html" title="interface in org.bukkit.command">CommandSender</a></h3>
|
|||
|
<code><a href="../command/CommandSender.html#getName()">getName</a>, <a href="../command/CommandSender.html#name()">name</a>, <a href="../command/CommandSender.html#sendMessage(java.lang.String)">sendMessage</a>, <a href="../command/CommandSender.html#sendMessage(java.lang.String...)">sendMessage</a>, <a href="../command/CommandSender.html#sendMessage(net.md_5.bungee.api.chat.BaseComponent...)">sendMessage</a>, <a href="../command/CommandSender.html#sendMessage(java.util.UUID,java.lang.String)">sendMessage</a>, <a href="../command/CommandSender.html#sendMessage(java.util.UUID,java.lang.String...)">sendMessage</a>, <a href="../command/CommandSender.html#sendMessage(net.kyori.adventure.identity.Identity,net.kyori.adventure.text.Component,net.kyori.adventure.audience.MessageType)">sendMessage</a>, <a href="../command/CommandSender.html#sendMessage(net.md_5.bungee.api.chat.BaseComponent)">sendMessage</a>, <a href="../command/CommandSender.html#sendPlainMessage(java.lang.String)">sendPlainMessage</a>, <a href="../command/CommandSender.html#sendRichMessage(java.lang.String)">sendRichMessage</a></code></div>
|
|||
|
<div class="inherited-list">
|
|||
|
<h3 id="methods-inherited-from-class-net.kyori.adventure.text.event.HoverEventSource">Methods inherited from interface net.kyori.adventure.text.event.<a href="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><a href="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>
|
|||
|
<div class="inherited-list">
|
|||
|
<h3 id="methods-inherited-from-class-org.bukkit.metadata.Metadatable">Methods inherited from interface org.bukkit.metadata.<a href="../metadata/Metadatable.html" title="interface in org.bukkit.metadata">Metadatable</a></h3>
|
|||
|
<code><a href="../metadata/Metadatable.html#getMetadata(java.lang.String)">getMetadata</a>, <a href="../metadata/Metadatable.html#hasMetadata(java.lang.String)">hasMetadata</a>, <a href="../metadata/Metadatable.html#removeMetadata(java.lang.String,org.bukkit.plugin.Plugin)">removeMetadata</a>, <a href="../metadata/Metadatable.html#setMetadata(java.lang.String,org.bukkit.metadata.MetadataValue)">setMetadata</a></code></div>
|
|||
|
<div class="inherited-list">
|
|||
|
<h3 id="methods-inherited-from-class-org.bukkit.Nameable">Methods inherited from interface org.bukkit.<a href="../Nameable.html" title="interface in org.bukkit">Nameable</a></h3>
|
|||
|
<code><a href="../Nameable.html#customName()">customName</a>, <a href="../Nameable.html#customName(net.kyori.adventure.text.Component)">customName</a>, <a href="../Nameable.html#getCustomName()">getCustomName</a>, <a href="../Nameable.html#setCustomName(java.lang.String)">setCustomName</a></code></div>
|
|||
|
<div class="inherited-list">
|
|||
|
<h3 id="methods-inherited-from-class-org.bukkit.permissions.Permissible">Methods inherited from interface org.bukkit.permissions.<a href="../permissions/Permissible.html" title="interface in org.bukkit.permissions">Permissible</a></h3>
|
|||
|
<code><a href="../permissions/Permissible.html#addAttachment(org.bukkit.plugin.Plugin)">addAttachment</a>, <a href="../permissions/Permissible.html#addAttachment(org.bukkit.plugin.Plugin,int)">addAttachment</a>, <a href="../permissions/Permissible.html#addAttachment(org.bukkit.plugin.Plugin,java.lang.String,boolean)">addAttachment</a>, <a href="../permissions/Permissible.html#addAttachment(org.bukkit.plugin.Plugin,java.lang.String,boolean,int)">addAttachment</a>, <a href="../permissions/Permissible.html#getEffectivePermissions()">getEffectivePermissions</a>, <a href="../permissions/Permissible.html#hasPermission(java.lang.String)">hasPermission</a>, <a href="../permissions/Permissible.html#hasPermission(org.bukkit.permissions.Permission)">hasPermission</a>, <a href="../permissions/Permissible.html#isPermissionSet(java.lang.String)">isPermissionSet</a>, <a href="../permissions/Permissible.html#isPermissionSet(org.bukkit.permissions.Permission)">isPermissionSet</a>, <a href="../permissions/Permissible.html#permissionValue(java.lang.String)">permissionValue</a>, <a href="../permissions/Permissible.html#permissionValue(org.bukkit.permissions.Permission)">permissionValue</a>, <a href="../permissions/Permissible.html#recalculatePermissions()">recalculatePermissions</a>, <a href="../permissions/Permissible.html#removeAttachment(org.bukkit.permissions.PermissionAttachment)">removeAttachment</a></code></div>
|
|||
|
<div class="inherited-list">
|
|||
|
<h3 id="methods-inherited-from-class-org.bukkit.persistence.PersistentDataHolder">Methods inherited from interface org.bukkit.persistence.<a href="../persistence/PersistentDataHolder.html" title="interface in org.bukkit.persistence">PersistentDataHolder</a></h3>
|
|||
|
<code><a href="../persistence/PersistentDataHolder.html#getPersistentDataContainer()">getPersistentDataContainer</a></code></div>
|
|||
|
<div class="inherited-list">
|
|||
|
<h3 id="methods-inherited-from-class-net.kyori.adventure.pointer.Pointered">Methods inherited from interface net.kyori.adventure.pointer.<a href="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><a href="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>, <a href="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>, <a href="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>, <a href="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>
|
|||
|
<div class="inherited-list">
|
|||
|
<h3 id="methods-inherited-from-class-org.bukkit.permissions.ServerOperator">Methods inherited from interface org.bukkit.permissions.<a href="../permissions/ServerOperator.html" title="interface in org.bukkit.permissions">ServerOperator</a></h3>
|
|||
|
<code><a href="../permissions/ServerOperator.html#isOp()">isOp</a>, <a href="../permissions/ServerOperator.html#setOp(boolean)">setOp</a></code></div>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
</ul>
|
|||
|
</section>
|
|||
|
<section class="details">
|
|||
|
<ul class="details-list">
|
|||
|
<!-- ============ METHOD DETAIL ========== -->
|
|||
|
<li>
|
|||
|
<section class="method-details" id="method-detail">
|
|||
|
<h2>Method Details</h2>
|
|||
|
<ul class="member-list">
|
|||
|
<li>
|
|||
|
<section class="detail" id="getLocation()">
|
|||
|
<h3>getLocation</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="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><span class="return-type"><a href="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> <a href="../Location.html" title="class in org.bukkit">Location</a></span> <span class="element-name">getLocation</span>()</div>
|
|||
|
<div class="block">Gets the entity's current position</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>a new copy of Location containing the position of this entity</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getLocation(org.bukkit.Location)">
|
|||
|
<h3>getLocation</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Contract.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Contract</a>("null -> null; !null -> !null")
|
|||
|
<a href="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><span class="return-type"><a href="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> <a href="../Location.html" title="class in org.bukkit">Location</a></span> <span class="element-name">getLocation</span><wbr><span class="parameters">(<a href="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>
|
|||
|
<a href="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> <a href="../Location.html" title="class in org.bukkit">Location</a> loc)</span></div>
|
|||
|
<div class="block">Stores the entity's current position in the provided Location object.
|
|||
|
<p>
|
|||
|
If the provided Location is null this method does nothing and returns
|
|||
|
null.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>loc</code> - the location to copy into</dd>
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>The Location object provided or null</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="setVelocity(org.bukkit.util.Vector)">
|
|||
|
<h3>setVelocity</h3>
|
|||
|
<div class="member-signature"><span class="return-type">void</span> <span class="element-name">setVelocity</span><wbr><span class="parameters">(<a href="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>
|
|||
|
<a href="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> <a href="../util/Vector.html" title="class in org.bukkit.util">Vector</a> velocity)</span></div>
|
|||
|
<div class="block">Sets this entity's velocity in meters per tick</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>velocity</code> - New velocity to travel with</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getVelocity()">
|
|||
|
<h3>getVelocity</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="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><span class="return-type"><a href="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> <a href="../util/Vector.html" title="class in org.bukkit.util">Vector</a></span> <span class="element-name">getVelocity</span>()</div>
|
|||
|
<div class="block">Gets this entity's current velocity</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>Current traveling velocity of this entity</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getHeight()">
|
|||
|
<h3>getHeight</h3>
|
|||
|
<div class="member-signature"><span class="return-type">double</span> <span class="element-name">getHeight</span>()</div>
|
|||
|
<div class="block">Gets the entity's height</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>height of entity</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getWidth()">
|
|||
|
<h3>getWidth</h3>
|
|||
|
<div class="member-signature"><span class="return-type">double</span> <span class="element-name">getWidth</span>()</div>
|
|||
|
<div class="block">Gets the entity's width</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>width of entity</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getBoundingBox()">
|
|||
|
<h3>getBoundingBox</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="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><span class="return-type"><a href="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> <a href="../util/BoundingBox.html" title="class in org.bukkit.util">BoundingBox</a></span> <span class="element-name">getBoundingBox</span>()</div>
|
|||
|
<div class="block">Gets the entity's current bounding box.
|
|||
|
<p>
|
|||
|
The returned bounding box reflects the entity's current location and
|
|||
|
size.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>the entity's current bounding box</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="isOnGround()">
|
|||
|
<h3>isOnGround</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">isOnGround</span>()</div>
|
|||
|
<div class="block">Returns true if the entity is supported by a block. This value is a
|
|||
|
state updated by the server and is not recalculated unless the entity
|
|||
|
moves.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>True if entity is on ground.</dd>
|
|||
|
<dt>See Also:</dt>
|
|||
|
<dd>
|
|||
|
<ul class="see-list">
|
|||
|
<li><a href="Player.html#isOnGround()"><code>Player.isOnGround()</code></a></li>
|
|||
|
</ul>
|
|||
|
</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="isInWater()">
|
|||
|
<h3>isInWater</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">isInWater</span>()</div>
|
|||
|
<div class="block">Returns true if the entity is in water.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd><code>true</code> if the entity is in water.</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getWorld()">
|
|||
|
<h3>getWorld</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="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><span class="return-type"><a href="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> <a href="../World.html" title="interface in org.bukkit">World</a></span> <span class="element-name">getWorld</span>()</div>
|
|||
|
<div class="block">Gets the current world this entity resides in</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>World</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="setRotation(float,float)">
|
|||
|
<h3>setRotation</h3>
|
|||
|
<div class="member-signature"><span class="return-type">void</span> <span class="element-name">setRotation</span><wbr><span class="parameters">(float yaw,
|
|||
|
float pitch)</span></div>
|
|||
|
<div class="block">Sets the entity's rotation.
|
|||
|
<p>
|
|||
|
Note that if the entity is affected by AI, it may override this rotation.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>yaw</code> - the yaw</dd>
|
|||
|
<dd><code>pitch</code> - the pitch</dd>
|
|||
|
<dt>Throws:</dt>
|
|||
|
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/UnsupportedOperationException.html" title="class or interface in java.lang" class="external-link">UnsupportedOperationException</a></code> - if used for players</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="teleport(org.bukkit.Location)">
|
|||
|
<h3>teleport</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">teleport</span><wbr><span class="parameters">(<a href="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>
|
|||
|
<a href="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> <a href="../Location.html" title="class in org.bukkit">Location</a> location)</span></div>
|
|||
|
<div class="block">Teleports this entity to the given location. If this entity is riding a
|
|||
|
vehicle, it will be dismounted prior to teleportation.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>location</code> - New location to teleport this entity to</dd>
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd><code>true</code> if the teleport was successful</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="teleport(org.bukkit.Location,org.bukkit.event.player.PlayerTeleportEvent.TeleportCause)">
|
|||
|
<h3>teleport</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">teleport</span><wbr><span class="parameters">(<a href="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>
|
|||
|
<a href="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> <a href="../Location.html" title="class in org.bukkit">Location</a> location,
|
|||
|
<a href="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>
|
|||
|
<a href="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> <a href="../event/player/PlayerTeleportEvent.TeleportCause.html" title="enum class in org.bukkit.event.player">PlayerTeleportEvent.TeleportCause</a> cause)</span></div>
|
|||
|
<div class="block">Teleports this entity to the given location. If this entity is riding a
|
|||
|
vehicle, it will be dismounted prior to teleportation.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>location</code> - New location to teleport this entity to</dd>
|
|||
|
<dd><code>cause</code> - The cause of this teleportation</dd>
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd><code>true</code> if the teleport was successful</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="teleport(org.bukkit.entity.Entity)">
|
|||
|
<h3>teleport</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">teleport</span><wbr><span class="parameters">(<a href="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>
|
|||
|
<a href="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> <a href="Entity.html" title="interface in org.bukkit.entity">Entity</a> destination)</span></div>
|
|||
|
<div class="block">Teleports this entity to the target Entity. If this entity is riding a
|
|||
|
vehicle, it will be dismounted prior to teleportation.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>destination</code> - Entity to teleport this entity to</dd>
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd><code>true</code> if the teleport was successful</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="teleport(org.bukkit.entity.Entity,org.bukkit.event.player.PlayerTeleportEvent.TeleportCause)">
|
|||
|
<h3>teleport</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">teleport</span><wbr><span class="parameters">(<a href="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>
|
|||
|
<a href="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> <a href="Entity.html" title="interface in org.bukkit.entity">Entity</a> destination,
|
|||
|
<a href="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>
|
|||
|
<a href="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> <a href="../event/player/PlayerTeleportEvent.TeleportCause.html" title="enum class in org.bukkit.event.player">PlayerTeleportEvent.TeleportCause</a> cause)</span></div>
|
|||
|
<div class="block">Teleports this entity to the target Entity. If this entity is riding a
|
|||
|
vehicle, it will be dismounted prior to teleportation.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>destination</code> - Entity to teleport this entity to</dd>
|
|||
|
<dd><code>cause</code> - The cause of this teleportation</dd>
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd><code>true</code> if the teleport was successful</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="teleportAsync(org.bukkit.Location)">
|
|||
|
<h3>teleportAsync</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="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><span class="modifiers">default</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/concurrent/CompletableFuture.html" title="class or interface in java.util.concurrent" class="external-link">CompletableFuture</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">teleportAsync</span><wbr><span class="parameters">(<a href="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>
|
|||
|
<a href="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> <a href="../Location.html" title="class in org.bukkit">Location</a> loc)</span></div>
|
|||
|
<div class="block">Loads/Generates(in 1.13+) the Chunk asynchronously, and then teleports the entity when the chunk is ready.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>loc</code> - Location to teleport to</dd>
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>A future that will be completed with the result of the teleport</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="teleportAsync(org.bukkit.Location,org.bukkit.event.player.PlayerTeleportEvent.TeleportCause)">
|
|||
|
<h3>teleportAsync</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="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><span class="modifiers">default</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/concurrent/CompletableFuture.html" title="class or interface in java.util.concurrent" class="external-link">CompletableFuture</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">teleportAsync</span><wbr><span class="parameters">(<a href="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>
|
|||
|
<a href="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> <a href="../Location.html" title="class in org.bukkit">Location</a> loc,
|
|||
|
<a href="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>
|
|||
|
<a href="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> <a href="../event/player/PlayerTeleportEvent.TeleportCause.html" title="enum class in org.bukkit.event.player">PlayerTeleportEvent.TeleportCause</a> cause)</span></div>
|
|||
|
<div class="block">Loads/Generates(in 1.13+) the Chunk asynchronously, and then teleports the entity when the chunk is ready.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>loc</code> - Location to teleport to</dd>
|
|||
|
<dd><code>cause</code> - Reason for teleport</dd>
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>A future that will be completed with the result of the teleport</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getNearbyEntities(double,double,double)">
|
|||
|
<h3>getNearbyEntities</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="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><span class="return-type"><a href="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> <a href="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><<a href="Entity.html" title="interface in org.bukkit.entity">Entity</a>></span> <span class="element-name">getNearbyEntities</span><wbr><span class="parameters">(double x,
|
|||
|
double y,
|
|||
|
double z)</span></div>
|
|||
|
<div class="block">Returns a list of entities within a bounding box centered around this
|
|||
|
entity</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>x</code> - 1/2 the size of the box along x axis</dd>
|
|||
|
<dd><code>y</code> - 1/2 the size of the box along y axis</dd>
|
|||
|
<dd><code>z</code> - 1/2 the size of the box along z axis</dd>
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd><code>List<Entity></code> List of entities nearby</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getEntityId()">
|
|||
|
<h3>getEntityId</h3>
|
|||
|
<div class="member-signature"><span class="return-type">int</span> <span class="element-name">getEntityId</span>()</div>
|
|||
|
<div class="block">Returns a unique id for this entity</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>Entity id</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getFireTicks()">
|
|||
|
<h3>getFireTicks</h3>
|
|||
|
<div class="member-signature"><span class="return-type">int</span> <span class="element-name">getFireTicks</span>()</div>
|
|||
|
<div class="block">Returns the entity's current fire ticks (ticks before the entity stops
|
|||
|
being on fire).</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>int fireTicks</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getMaxFireTicks()">
|
|||
|
<h3>getMaxFireTicks</h3>
|
|||
|
<div class="member-signature"><span class="return-type">int</span> <span class="element-name">getMaxFireTicks</span>()</div>
|
|||
|
<div class="block">Returns the entity's maximum fire ticks.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>int maxFireTicks</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="setFireTicks(int)">
|
|||
|
<h3>setFireTicks</h3>
|
|||
|
<div class="member-signature"><span class="return-type">void</span> <span class="element-name">setFireTicks</span><wbr><span class="parameters">(int ticks)</span></div>
|
|||
|
<div class="block">Sets the entity's current fire ticks (ticks before the entity stops
|
|||
|
being on fire).</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>ticks</code> - Current ticks remaining</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="setVisualFire(boolean)">
|
|||
|
<h3>setVisualFire</h3>
|
|||
|
<div class="member-signature"><span class="return-type">void</span> <span class="element-name">setVisualFire</span><wbr><span class="parameters">(boolean fire)</span></div>
|
|||
|
<div class="block">Sets if the entity has visual fire (it will always appear to be on fire).</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>fire</code> - whether visual fire is enabled</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="isVisualFire()">
|
|||
|
<h3>isVisualFire</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">isVisualFire</span>()</div>
|
|||
|
<div class="block">Gets if the entity has visual fire (it will always appear to be on fire).</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>whether visual fire is enabled</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getFreezeTicks()">
|
|||
|
<h3>getFreezeTicks</h3>
|
|||
|
<div class="member-signature"><span class="return-type">int</span> <span class="element-name">getFreezeTicks</span>()</div>
|
|||
|
<div class="block">Returns the entity's current freeze ticks (amount of ticks the entity has
|
|||
|
been in powdered snow).</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>int freeze ticks</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getMaxFreezeTicks()">
|
|||
|
<h3>getMaxFreezeTicks</h3>
|
|||
|
<div class="member-signature"><span class="return-type">int</span> <span class="element-name">getMaxFreezeTicks</span>()</div>
|
|||
|
<div class="block">Returns the entity's maximum freeze ticks (amount of ticks before it will
|
|||
|
be fully frozen)</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>int max freeze ticks</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="setFreezeTicks(int)">
|
|||
|
<h3>setFreezeTicks</h3>
|
|||
|
<div class="member-signature"><span class="return-type">void</span> <span class="element-name">setFreezeTicks</span><wbr><span class="parameters">(int ticks)</span></div>
|
|||
|
<div class="block">Sets the entity's current freeze ticks (amount of ticks the entity has
|
|||
|
been in powdered snow).</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>ticks</code> - Current ticks</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="isFrozen()">
|
|||
|
<h3>isFrozen</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">isFrozen</span>()</div>
|
|||
|
<div class="block">Gets if the entity is fully frozen (it has been in powdered snow for max
|
|||
|
freeze ticks).</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>freeze status</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="isFreezeTickingLocked()">
|
|||
|
<h3>isFreezeTickingLocked</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">isFreezeTickingLocked</span>()</div>
|
|||
|
<div class="block">Gets if the entity currently has its freeze ticks locked
|
|||
|
to a set amount.
|
|||
|
<p>
|
|||
|
This is only set by plugins</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>locked or not</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="lockFreezeTicks(boolean)">
|
|||
|
<h3>lockFreezeTicks</h3>
|
|||
|
<div class="member-signature"><span class="return-type">void</span> <span class="element-name">lockFreezeTicks</span><wbr><span class="parameters">(boolean locked)</span></div>
|
|||
|
<div class="block">Sets if the entity currently has its freeze ticks locked,
|
|||
|
preventing default vanilla freeze tick modification.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>locked</code> - prevent vanilla modification or not</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="remove()">
|
|||
|
<h3>remove</h3>
|
|||
|
<div class="member-signature"><span class="return-type">void</span> <span class="element-name">remove</span>()</div>
|
|||
|
<div class="block">Mark the entity's removal.</div>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="isDead()">
|
|||
|
<h3>isDead</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">isDead</span>()</div>
|
|||
|
<div class="block">Returns true if this entity has been marked for removal.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>True if it is dead.</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="isValid()">
|
|||
|
<h3>isValid</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">isValid</span>()</div>
|
|||
|
<div class="block">Returns false if the entity has died or been despawned for some other
|
|||
|
reason.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>True if valid.</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getServer()">
|
|||
|
<h3>getServer</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="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><span class="return-type"><a href="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> <a href="../Server.html" title="interface in org.bukkit">Server</a></span> <span class="element-name">getServer</span>()</div>
|
|||
|
<div class="block">Gets the <a href="../Server.html" title="interface in org.bukkit"><code>Server</code></a> that contains this Entity</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Specified by:</dt>
|
|||
|
<dd><code><a href="../command/CommandSender.html#getServer()">getServer</a></code> in interface <code><a href="../command/CommandSender.html" title="interface in org.bukkit.command">CommandSender</a></code></dd>
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>Server instance running this Entity</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="isPersistent()">
|
|||
|
<h3>isPersistent</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">isPersistent</span>()</div>
|
|||
|
<div class="block">Returns true if the entity gets persisted.
|
|||
|
<p>
|
|||
|
By default all entities are persistent. An entity will also not get
|
|||
|
persisted, if it is riding an entity that is not persistent.
|
|||
|
<p>
|
|||
|
The persistent flag on players controls whether or not to save their
|
|||
|
playerdata file when they quit. If a player is directly or indirectly
|
|||
|
riding a non-persistent entity, the vehicle at the root and all its
|
|||
|
passengers won't get persisted.
|
|||
|
<p>
|
|||
|
<b>This should not be confused with
|
|||
|
<a href="LivingEntity.html#setRemoveWhenFarAway(boolean)"><code>LivingEntity.setRemoveWhenFarAway(boolean)</code></a> which controls
|
|||
|
despawning of living entities. </b></div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>true if this entity is persistent</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="setPersistent(boolean)">
|
|||
|
<h3>setPersistent</h3>
|
|||
|
<div class="member-signature"><span class="return-type">void</span> <span class="element-name">setPersistent</span><wbr><span class="parameters">(boolean persistent)</span></div>
|
|||
|
<div class="block">Sets whether or not the entity gets persisted.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>persistent</code> - the persistence status</dd>
|
|||
|
<dt>See Also:</dt>
|
|||
|
<dd>
|
|||
|
<ul class="see-list">
|
|||
|
<li><a href="#isPersistent()"><code>isPersistent()</code></a></li>
|
|||
|
</ul>
|
|||
|
</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getPassenger()">
|
|||
|
<h3>getPassenger</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="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>
|
|||
|
<a href="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><span class="return-type"><a href="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> <a href="Entity.html" title="interface in org.bukkit.entity">Entity</a></span> <span class="element-name">getPassenger</span>()</div>
|
|||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
|||
|
<div class="deprecation-comment">entities may have multiple passengers, use
|
|||
|
<a href="#getPassengers()"><code>getPassengers()</code></a></div>
|
|||
|
</div>
|
|||
|
<div class="block">Gets the primary passenger of a vehicle. For vehicles that could have
|
|||
|
multiple passengers, this will only return the primary passenger.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>an entity</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="setPassenger(org.bukkit.entity.Entity)">
|
|||
|
<h3>setPassenger</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="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><span class="return-type">boolean</span> <span class="element-name">setPassenger</span><wbr><span class="parameters">(<a href="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>
|
|||
|
<a href="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> <a href="Entity.html" title="interface in org.bukkit.entity">Entity</a> passenger)</span></div>
|
|||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
|||
|
<div class="deprecation-comment">entities may have multiple passengers, use
|
|||
|
<a href="#addPassenger(org.bukkit.entity.Entity)"><code>addPassenger(org.bukkit.entity.Entity)</code></a></div>
|
|||
|
</div>
|
|||
|
<div class="block">Set the passenger of a vehicle.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>passenger</code> - The new passenger.</dd>
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>false if it could not be done for whatever reason</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getPassengers()">
|
|||
|
<h3>getPassengers</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="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><span class="return-type"><a href="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> <a href="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><<a href="Entity.html" title="interface in org.bukkit.entity">Entity</a>></span> <span class="element-name">getPassengers</span>()</div>
|
|||
|
<div class="block">Gets a list of passengers of this vehicle.
|
|||
|
<p>
|
|||
|
The returned list will not be directly linked to the entity's current
|
|||
|
passengers, and no guarantees are made as to its mutability.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>list of entities corresponding to current passengers.</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="addPassenger(org.bukkit.entity.Entity)">
|
|||
|
<h3>addPassenger</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">addPassenger</span><wbr><span class="parameters">(<a href="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>
|
|||
|
<a href="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> <a href="Entity.html" title="interface in org.bukkit.entity">Entity</a> passenger)</span></div>
|
|||
|
<div class="block">Add a passenger to the vehicle.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>passenger</code> - The passenger to add</dd>
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>false if it could not be done for whatever reason</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="removePassenger(org.bukkit.entity.Entity)">
|
|||
|
<h3>removePassenger</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">removePassenger</span><wbr><span class="parameters">(<a href="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>
|
|||
|
<a href="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> <a href="Entity.html" title="interface in org.bukkit.entity">Entity</a> passenger)</span></div>
|
|||
|
<div class="block">Remove a passenger from the vehicle.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>passenger</code> - The passenger to remove</dd>
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>false if it could not be done for whatever reason</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="isEmpty()">
|
|||
|
<h3>isEmpty</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">isEmpty</span>()</div>
|
|||
|
<div class="block">Check if a vehicle has passengers.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>True if the vehicle has no passengers.</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="eject()">
|
|||
|
<h3>eject</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">eject</span>()</div>
|
|||
|
<div class="block">Eject any passenger.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>True if there was a passenger.</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getFallDistance()">
|
|||
|
<h3>getFallDistance</h3>
|
|||
|
<div class="member-signature"><span class="return-type">float</span> <span class="element-name">getFallDistance</span>()</div>
|
|||
|
<div class="block">Returns the distance this entity has fallen</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>The distance.</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="setFallDistance(float)">
|
|||
|
<h3>setFallDistance</h3>
|
|||
|
<div class="member-signature"><span class="return-type">void</span> <span class="element-name">setFallDistance</span><wbr><span class="parameters">(float distance)</span></div>
|
|||
|
<div class="block">Sets the fall distance for this entity</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>distance</code> - The new distance.</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="setLastDamageCause(org.bukkit.event.entity.EntityDamageEvent)">
|
|||
|
<h3>setLastDamageCause</h3>
|
|||
|
<div class="member-signature"><span class="return-type">void</span> <span class="element-name">setLastDamageCause</span><wbr><span class="parameters">(<a href="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>
|
|||
|
<a href="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> <a href="../event/entity/EntityDamageEvent.html" title="class in org.bukkit.event.entity">EntityDamageEvent</a> event)</span></div>
|
|||
|
<div class="block">Record the last <a href="../event/entity/EntityDamageEvent.html" title="class in org.bukkit.event.entity"><code>EntityDamageEvent</code></a> inflicted on this entity</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>event</code> - a <a href="../event/entity/EntityDamageEvent.html" title="class in org.bukkit.event.entity"><code>EntityDamageEvent</code></a></dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getLastDamageCause()">
|
|||
|
<h3>getLastDamageCause</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="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><span class="return-type"><a href="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> <a href="../event/entity/EntityDamageEvent.html" title="class in org.bukkit.event.entity">EntityDamageEvent</a></span> <span class="element-name">getLastDamageCause</span>()</div>
|
|||
|
<div class="block">Retrieve the last <a href="../event/entity/EntityDamageEvent.html" title="class in org.bukkit.event.entity"><code>EntityDamageEvent</code></a> inflicted on this entity.
|
|||
|
This event may have been cancelled.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>the last known <a href="../event/entity/EntityDamageEvent.html" title="class in org.bukkit.event.entity"><code>EntityDamageEvent</code></a> or null if hitherto
|
|||
|
unharmed</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getUniqueId()">
|
|||
|
<h3>getUniqueId</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="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><span class="return-type"><a href="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> <a href="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> <span class="element-name">getUniqueId</span>()</div>
|
|||
|
<div class="block">Returns a unique and persistent id for this entity</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>unique id</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getTicksLived()">
|
|||
|
<h3>getTicksLived</h3>
|
|||
|
<div class="member-signature"><span class="return-type">int</span> <span class="element-name">getTicksLived</span>()</div>
|
|||
|
<div class="block">Gets the amount of ticks this entity has lived for.
|
|||
|
<p>
|
|||
|
This is the equivalent to "age" in entities.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>Age of entity</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="setTicksLived(int)">
|
|||
|
<h3>setTicksLived</h3>
|
|||
|
<div class="member-signature"><span class="return-type">void</span> <span class="element-name">setTicksLived</span><wbr><span class="parameters">(int value)</span></div>
|
|||
|
<div class="block">Sets the amount of ticks this entity has lived for.
|
|||
|
<p>
|
|||
|
This is the equivalent to "age" in entities. May not be less than one
|
|||
|
tick.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>value</code> - Age of entity</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="playEffect(org.bukkit.EntityEffect)">
|
|||
|
<h3>playEffect</h3>
|
|||
|
<div class="member-signature"><span class="return-type">void</span> <span class="element-name">playEffect</span><wbr><span class="parameters">(<a href="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>
|
|||
|
<a href="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> <a href="../EntityEffect.html" title="enum class in org.bukkit">EntityEffect</a> type)</span></div>
|
|||
|
<div class="block">Performs the specified <a href="../EntityEffect.html" title="enum class in org.bukkit"><code>EntityEffect</code></a> for this entity.
|
|||
|
<p>
|
|||
|
This will be viewable to all players near the entity.
|
|||
|
<p>
|
|||
|
If the effect is not applicable to this class of entity, it will not play.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>type</code> - Effect to play.</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getType()">
|
|||
|
<h3>getType</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="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><span class="return-type"><a href="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> <a href="EntityType.html" title="enum class in org.bukkit.entity">EntityType</a></span> <span class="element-name">getType</span>()</div>
|
|||
|
<div class="block">Get the type of the entity.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>The entity type.</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="isInsideVehicle()">
|
|||
|
<h3>isInsideVehicle</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">isInsideVehicle</span>()</div>
|
|||
|
<div class="block">Returns whether this entity is inside a vehicle.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>True if the entity is in a vehicle.</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="leaveVehicle()">
|
|||
|
<h3>leaveVehicle</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">leaveVehicle</span>()</div>
|
|||
|
<div class="block">Leave the current vehicle. If the entity is currently in a vehicle (and
|
|||
|
is removed from it), true will be returned, otherwise false will be
|
|||
|
returned.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>True if the entity was in a vehicle.</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getVehicle()">
|
|||
|
<h3>getVehicle</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="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><span class="return-type"><a href="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> <a href="Entity.html" title="interface in org.bukkit.entity">Entity</a></span> <span class="element-name">getVehicle</span>()</div>
|
|||
|
<div class="block">Get the vehicle that this player is inside. If there is no vehicle,
|
|||
|
null will be returned.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>The current vehicle.</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="setCustomNameVisible(boolean)">
|
|||
|
<h3>setCustomNameVisible</h3>
|
|||
|
<div class="member-signature"><span class="return-type">void</span> <span class="element-name">setCustomNameVisible</span><wbr><span class="parameters">(boolean flag)</span></div>
|
|||
|
<div class="block">Sets whether or not to display the mob's custom name client side. The
|
|||
|
name will be displayed above the mob similarly to a player.
|
|||
|
<p>
|
|||
|
This value has no effect on players, they will always display their
|
|||
|
name.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>flag</code> - custom name or not</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="isCustomNameVisible()">
|
|||
|
<h3>isCustomNameVisible</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">isCustomNameVisible</span>()</div>
|
|||
|
<div class="block">Gets whether or not the mob's custom name is displayed client side.
|
|||
|
<p>
|
|||
|
This value has no effect on players, they will always display their
|
|||
|
name.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>if the custom name is displayed</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="setGlowing(boolean)">
|
|||
|
<h3>setGlowing</h3>
|
|||
|
<div class="member-signature"><span class="return-type">void</span> <span class="element-name">setGlowing</span><wbr><span class="parameters">(boolean flag)</span></div>
|
|||
|
<div class="block">Sets whether the entity has a team colored (default: white) glow.
|
|||
|
|
|||
|
<b>nb: this refers to the 'Glowing' entity property, not whether a
|
|||
|
glowing potion effect is applied</b></div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>flag</code> - if the entity is glowing</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="isGlowing()">
|
|||
|
<h3>isGlowing</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">isGlowing</span>()</div>
|
|||
|
<div class="block">Gets whether the entity is glowing or not.
|
|||
|
|
|||
|
<b>nb: this refers to the 'Glowing' entity property, not whether a
|
|||
|
glowing potion effect is applied</b></div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>whether the entity is glowing</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="setInvulnerable(boolean)">
|
|||
|
<h3>setInvulnerable</h3>
|
|||
|
<div class="member-signature"><span class="return-type">void</span> <span class="element-name">setInvulnerable</span><wbr><span class="parameters">(boolean flag)</span></div>
|
|||
|
<div class="block">Sets whether the entity is invulnerable or not.
|
|||
|
<p>
|
|||
|
When an entity is invulnerable it can only be damaged by players in
|
|||
|
creative mode.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>flag</code> - if the entity is invulnerable</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="isInvulnerable()">
|
|||
|
<h3>isInvulnerable</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">isInvulnerable</span>()</div>
|
|||
|
<div class="block">Gets whether the entity is invulnerable or not.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>whether the entity is</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="isSilent()">
|
|||
|
<h3>isSilent</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">isSilent</span>()</div>
|
|||
|
<div class="block">Gets whether the entity is silent or not.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>whether the entity is silent.</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="setSilent(boolean)">
|
|||
|
<h3>setSilent</h3>
|
|||
|
<div class="member-signature"><span class="return-type">void</span> <span class="element-name">setSilent</span><wbr><span class="parameters">(boolean flag)</span></div>
|
|||
|
<div class="block">Sets whether the entity is silent or not.
|
|||
|
<p>
|
|||
|
When an entity is silent it will not produce any sound.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>flag</code> - if the entity is silent</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="hasGravity()">
|
|||
|
<h3>hasGravity</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">hasGravity</span>()</div>
|
|||
|
<div class="block">Returns whether gravity applies to this entity.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>whether gravity applies</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="setGravity(boolean)">
|
|||
|
<h3>setGravity</h3>
|
|||
|
<div class="member-signature"><span class="return-type">void</span> <span class="element-name">setGravity</span><wbr><span class="parameters">(boolean gravity)</span></div>
|
|||
|
<div class="block">Sets whether gravity applies to this entity.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>gravity</code> - whether gravity should apply</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getPortalCooldown()">
|
|||
|
<h3>getPortalCooldown</h3>
|
|||
|
<div class="member-signature"><span class="return-type">int</span> <span class="element-name">getPortalCooldown</span>()</div>
|
|||
|
<div class="block">Gets the period of time (in ticks) before this entity can use a portal.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>portal cooldown ticks</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="setPortalCooldown(int)">
|
|||
|
<h3>setPortalCooldown</h3>
|
|||
|
<div class="member-signature"><span class="return-type">void</span> <span class="element-name">setPortalCooldown</span><wbr><span class="parameters">(int cooldown)</span></div>
|
|||
|
<div class="block">Sets the period of time (in ticks) before this entity can use a portal.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>cooldown</code> - portal cooldown ticks</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getScoreboardTags()">
|
|||
|
<h3>getScoreboardTags</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="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><span class="return-type"><a href="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> <a href="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><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>></span> <span class="element-name">getScoreboardTags</span>()</div>
|
|||
|
<div class="block">Returns a set of tags for this entity.
|
|||
|
<br>
|
|||
|
Entities can have no more than 1024 tags.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>a set of tags for this entity</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="addScoreboardTag(java.lang.String)">
|
|||
|
<h3>addScoreboardTag</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">addScoreboardTag</span><wbr><span class="parameters">(<a href="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>
|
|||
|
<a href="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> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> tag)</span></div>
|
|||
|
<div class="block">Add a tag to this entity.
|
|||
|
<br>
|
|||
|
Entities can have no more than 1024 tags.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>tag</code> - the tag to add</dd>
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>true if the tag was successfully added</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="removeScoreboardTag(java.lang.String)">
|
|||
|
<h3>removeScoreboardTag</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">removeScoreboardTag</span><wbr><span class="parameters">(<a href="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>
|
|||
|
<a href="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> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> tag)</span></div>
|
|||
|
<div class="block">Removes a given tag from this entity.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>tag</code> - the tag to remove</dd>
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>true if the tag was successfully removed</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getPistonMoveReaction()">
|
|||
|
<h3>getPistonMoveReaction</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="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><span class="return-type"><a href="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> <a href="../block/PistonMoveReaction.html" title="enum class in org.bukkit.block">PistonMoveReaction</a></span> <span class="element-name">getPistonMoveReaction</span>()</div>
|
|||
|
<div class="block">Returns the reaction of the entity when moved by a piston.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>reaction</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getFacing()">
|
|||
|
<h3>getFacing</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="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><span class="return-type"><a href="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> <a href="../block/BlockFace.html" title="enum class in org.bukkit.block">BlockFace</a></span> <span class="element-name">getFacing</span>()</div>
|
|||
|
<div class="block">Get the closest cardinal <a href="../block/BlockFace.html" title="enum class in org.bukkit.block"><code>BlockFace</code></a> direction an entity is
|
|||
|
currently facing.
|
|||
|
<br>
|
|||
|
This will not return any non-cardinal directions such as
|
|||
|
<a href="../block/BlockFace.html#UP"><code>BlockFace.UP</code></a> or <a href="../block/BlockFace.html#DOWN"><code>BlockFace.DOWN</code></a>.
|
|||
|
<br>
|
|||
|
<a href="Hanging.html" title="interface in org.bukkit.entity"><code>Hanging</code></a> entities will override this call and thus their behavior
|
|||
|
may be different.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>the entity's current cardinal facing.</dd>
|
|||
|
<dt>See Also:</dt>
|
|||
|
<dd>
|
|||
|
<ul class="see-list">
|
|||
|
<li><a href="Hanging.html" title="interface in org.bukkit.entity"><code>Hanging</code></a></li>
|
|||
|
<li><a href="../material/Directional.html#getFacing()"><code>Directional.getFacing()</code></a></li>
|
|||
|
</ul>
|
|||
|
</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getPose()">
|
|||
|
<h3>getPose</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="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><span class="return-type"><a href="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> <a href="Pose.html" title="enum class in org.bukkit.entity">Pose</a></span> <span class="element-name">getPose</span>()</div>
|
|||
|
<div class="block">Gets the entity's current pose.
|
|||
|
|
|||
|
<b>Note that the pose is only updated at the end of a tick, so may be
|
|||
|
inconsistent with other methods. eg <a href="Player.html#isSneaking()"><code>Player.isSneaking()</code></a> being
|
|||
|
true does not imply the current pose will be <a href="Pose.html#SNEAKING"><code>Pose.SNEAKING</code></a></b></div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>current pose</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getSpawnCategory()">
|
|||
|
<h3>getSpawnCategory</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="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><span class="return-type"><a href="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> <a href="SpawnCategory.html" title="enum class in org.bukkit.entity">SpawnCategory</a></span> <span class="element-name">getSpawnCategory</span>()</div>
|
|||
|
<div class="block">Get the category of spawn to which this entity belongs.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>the entity´s category spawn</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="spigot()">
|
|||
|
<h3>spigot</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="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><span class="return-type"><a href="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> <a href="Entity.Spigot.html" title="class in org.bukkit.entity">Entity.Spigot</a></span> <span class="element-name">spigot</span>()</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Specified by:</dt>
|
|||
|
<dd><code><a href="../command/CommandSender.html#spigot()">spigot</a></code> in interface <code><a href="../command/CommandSender.html" title="interface in org.bukkit.command">CommandSender</a></code></dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="teamDisplayName()">
|
|||
|
<h3>teamDisplayName</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="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><span class="return-type"><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a></span> <span class="element-name">teamDisplayName</span>()</div>
|
|||
|
<div class="block">Gets the entity's display name formatted with their team prefix/suffix and
|
|||
|
the entity's default hover/click events.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>the team display name</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="asHoverEvent(java.util.function.UnaryOperator)">
|
|||
|
<h3>asHoverEvent</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="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><span class="modifiers">default</span> <span class="return-type"><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/event/HoverEvent.html" title="class or interface in net.kyori.adventure.text.event" class="external-link">HoverEvent</a><<a href="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>></span> <span class="element-name">asHoverEvent</span><wbr><span class="parameters">(<a href="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>
|
|||
|
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/UnaryOperator.html" title="class or interface in java.util.function" class="external-link">UnaryOperator</a><<a href="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>> op)</span></div>
|
|||
|
<div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/event/HoverEventSource.html#asHoverEvent(java.util.function.UnaryOperator)" title="class or interface in net.kyori.adventure.text.event" class="external-link">net.kyori.adventure.text.event.HoverEventSource</a></code></span></div>
|
|||
|
<div class="block">Creates a hover event with value derived from this object.
|
|||
|
|
|||
|
<p>The event value will be passed through the provided callback to allow
|
|||
|
transforming the original value of the event.</p></div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Specified by:</dt>
|
|||
|
<dd><code><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/event/HoverEventSource.html#asHoverEvent(java.util.function.UnaryOperator)" title="class or interface in net.kyori.adventure.text.event" class="external-link">asHoverEvent</a></code> in interface <code><a href="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><<a href="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></dd>
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>op</code> - transformation on value</dd>
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>a hover event</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getOrigin()">
|
|||
|
<h3>getOrigin</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="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><span class="return-type"><a href="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> <a href="../Location.html" title="class in org.bukkit">Location</a></span> <span class="element-name">getOrigin</span>()</div>
|
|||
|
<div class="block">Gets the location where this entity originates from.
|
|||
|
<p>
|
|||
|
This value can be null if the entity hasn't yet been added to the world.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>Location where entity originates or null if not yet added</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="fromMobSpawner()">
|
|||
|
<h3>fromMobSpawner</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">fromMobSpawner</span>()</div>
|
|||
|
<div class="block">Returns whether this entity was spawned from a mob spawner.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>True if entity spawned from a mob spawner</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getChunk()">
|
|||
|
<h3>getChunk</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="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><span class="modifiers">default</span> <span class="return-type"><a href="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> <a href="../Chunk.html" title="interface in org.bukkit">Chunk</a></span> <span class="element-name">getChunk</span>()</div>
|
|||
|
<div class="block">Gets the latest chunk an entity is currently or was in.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>The current, or most recent chunk if the entity is invalid (which may load the chunk)</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getEntitySpawnReason()">
|
|||
|
<h3>getEntitySpawnReason</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="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><span class="return-type"><a href="../event/entity/CreatureSpawnEvent.SpawnReason.html" title="enum class in org.bukkit.event.entity">CreatureSpawnEvent.SpawnReason</a></span> <span class="element-name">getEntitySpawnReason</span>()</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>The <a href="../event/entity/CreatureSpawnEvent.SpawnReason.html" title="enum class in org.bukkit.event.entity"><code>CreatureSpawnEvent.SpawnReason</code></a> that initially spawned this entity. <!-- Paper - added "initially" to clarify that the SpawnReason doesn't change after the Entity was initially spawned" --></dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="isInRain()">
|
|||
|
<h3>isInRain</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">isInRain</span>()</div>
|
|||
|
<div class="block">Check if entity is in rain</div>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="isInBubbleColumn()">
|
|||
|
<h3>isInBubbleColumn</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">isInBubbleColumn</span>()</div>
|
|||
|
<div class="block">Check if entity is in bubble column</div>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="isInWaterOrRain()">
|
|||
|
<h3>isInWaterOrRain</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">isInWaterOrRain</span>()</div>
|
|||
|
<div class="block">Check if entity is in water or rain</div>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="isInWaterOrBubbleColumn()">
|
|||
|
<h3>isInWaterOrBubbleColumn</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">isInWaterOrBubbleColumn</span>()</div>
|
|||
|
<div class="block">Check if entity is in water or bubble column</div>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="isInWaterOrRainOrBubbleColumn()">
|
|||
|
<h3>isInWaterOrRainOrBubbleColumn</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">isInWaterOrRainOrBubbleColumn</span>()</div>
|
|||
|
<div class="block">Check if entity is in water or rain or bubble column</div>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="isInLava()">
|
|||
|
<h3>isInLava</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">isInLava</span>()</div>
|
|||
|
<div class="block">Check if entity is in lava</div>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="isTicking()">
|
|||
|
<h3>isTicking</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">isTicking</span>()</div>
|
|||
|
<div class="block">Check if entity is inside a ticking chunk</div>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="getTrackedPlayers()">
|
|||
|
<h3>getTrackedPlayers</h3>
|
|||
|
<div class="member-signature"><span class="annotations"><a href="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><span class="return-type"><a href="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> <a href="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><<a href="Player.html" title="interface in org.bukkit.entity">Player</a>></span> <span class="element-name">getTrackedPlayers</span>()</div>
|
|||
|
<div class="block">Returns a set of <a href="Player.html" title="interface in org.bukkit.entity"><code>Players</code></a> within this entity's tracking range (players that can "see" this entity).</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>players in tracking range</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="spawnAt(org.bukkit.Location)">
|
|||
|
<h3>spawnAt</h3>
|
|||
|
<div class="member-signature"><span class="modifiers">default</span> <span class="return-type">boolean</span> <span class="element-name">spawnAt</span><wbr><span class="parameters">(<a href="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>
|
|||
|
<a href="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> <a href="../Location.html" title="class in org.bukkit">Location</a> location)</span></div>
|
|||
|
<div class="block">Spawns the entity in the world at the given <a href="../Location.html" title="class in org.bukkit"><code>Location</code></a> with the default spawn reason.
|
|||
|
<p>
|
|||
|
This will not spawn the entity if the entity is already spawned or has previously been despawned.
|
|||
|
<p>
|
|||
|
Also, this method will fire the same events as a normal entity spawn.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>location</code> - The location to spawn the entity at.</dd>
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>Whether the entity was successfully spawned.</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="spawnAt(org.bukkit.Location,org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason)">
|
|||
|
<h3>spawnAt</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">spawnAt</span><wbr><span class="parameters">(<a href="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>
|
|||
|
<a href="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> <a href="../Location.html" title="class in org.bukkit">Location</a> location,
|
|||
|
<a href="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>
|
|||
|
<a href="../event/entity/CreatureSpawnEvent.SpawnReason.html" title="enum class in org.bukkit.event.entity">CreatureSpawnEvent.SpawnReason</a> reason)</span></div>
|
|||
|
<div class="block">Spawns the entity in the world at the given <a href="../Location.html" title="class in org.bukkit"><code>Location</code></a> with the reason given.
|
|||
|
<p>
|
|||
|
This will not spawn the entity if the entity is already spawned or has previously been despawned.
|
|||
|
<p>
|
|||
|
Also, this method will fire the same events as a normal entity spawn.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Parameters:</dt>
|
|||
|
<dd><code>location</code> - The location to spawn the entity at.</dd>
|
|||
|
<dd><code>reason</code> - The reason for the entity being spawned.</dd>
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>Whether the entity was successfully spawned.</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
<li>
|
|||
|
<section class="detail" id="isInPowderedSnow()">
|
|||
|
<h3>isInPowderedSnow</h3>
|
|||
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">isInPowderedSnow</span>()</div>
|
|||
|
<div class="block">Check if entity is inside powdered snow.</div>
|
|||
|
<dl class="notes">
|
|||
|
<dt>Returns:</dt>
|
|||
|
<dd>true if in powdered snow.</dd>
|
|||
|
</dl>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
</ul>
|
|||
|
</section>
|
|||
|
</li>
|
|||
|
</ul>
|
|||
|
</section>
|
|||
|
<!-- ========= END OF CLASS DATA ========= -->
|
|||
|
</main>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</body>
|
|||
|
</html>
|