<divclass="inheritance"title="Inheritance Tree"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">java.lang.Object</a>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Cloneable.html"title="class or interface in java.lang"class="external-link">Cloneable</a></code>, <code><ahref="configuration/serialization/ConfigurationSerializable.html"title="interface in org.bukkit.configuration.serialization">ConfigurationSerializable</a></code></dd>
</dl>
<hr>
<divclass="type-signature"><spanclass="modifiers">public class </span><spanclass="element-name type-name-label">Location</span>
<spanclass="extends-implements">extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a>
implements <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Cloneable.html"title="class or interface in java.lang"class="external-link">Cloneable</a>, <ahref="configuration/serialization/ConfigurationSerializable.html"title="interface in org.bukkit.configuration.serialization">ConfigurationSerializable</a></span></div>
<divclass="block">Represents a 3-dimensional position in a world.
<br>
No constraints are placed on any angular values other than that they be
specified in degrees. This means that negative angles or angles of greater
magnitude than 360 are valid, but may be normalized to any other equivalent
<divclass="col-constructor-name even-row-color"><code><ahref="#%3Cinit%3E(org.bukkit.World,double,double,double)"class="member-name-link">Location</a><wbr>(<ahref="World.html"title="interface in org.bukkit">World</a> world,
double x,
double y,
double z)</code></div>
<divclass="col-last even-row-color">
<divclass="block">Constructs a new Location with the given coordinates</div>
</div>
<divclass="col-constructor-name odd-row-color"><code><ahref="#%3Cinit%3E(org.bukkit.World,double,double,double,float,float)"class="member-name-link">Location</a><wbr>(<ahref="World.html"title="interface in org.bukkit">World</a> world,
double x,
double y,
double z,
float yaw,
float pitch)</code></div>
<divclass="col-last odd-row-color">
<divclass="block">Constructs a new Location with the given coordinates and direction</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></code></div>
<divclass="block">Adds the location by another.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#add(org.bukkit.Location)"class="member-name-link">add</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a> vec)</code></div>
<divclass="block">Adds the location by another.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#add(org.bukkit.Location,double,double,double)"class="member-name-link">add</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a> base,
<divclass="block">Takes the x/y/z from base and adds the specified x/y/z to it and returns self
This mutates this object, clone first.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#add(org.bukkit.util.Vector)"class="member-name-link">add</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="util/Vector.html"title="class in org.bukkit.util">Vector</a> vec)</code></div>
<divclass="block">Check if each component of this Location is finite.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#createExplosion(org.bukkit.entity.Entity,float,boolean,boolean)"class="member-name-link">createExplosion</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a> source,
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#createExplosion(org.bukkit.entity.Entity,float)"class="member-name-link">createExplosion</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a> source,
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#createExplosion(org.bukkit.entity.Entity,float,boolean)"class="member-name-link">createExplosion</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a> source,
<divclass="block">Creates explosion at this location with given power and optionally
setting blocks on fire, with the specified entity as the source.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><ahref="#deserialize(java.util.Map)"class="member-name-link">deserialize</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html"title="class or interface in java.util"class="external-link">Map</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a>,<wbr><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a>> args)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#distance(org.bukkit.Location)"class="member-name-link">distance</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a> o)</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#distanceSquared(org.bukkit.Location)"class="member-name-link">distanceSquared</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a> o)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#equals(java.lang.Object)"class="member-name-link">equals</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a> obj)</code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="block/Block.html"title="interface in org.bukkit.block">Block</a></code></div>
<divclass="block">Gets the floored value of the Z component, indicating the block that
this location is contained with.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Chunk.html"title="interface in org.bukkit">Chunk</a></code></div>
<divclass="block">Gets the chunk at the represented location</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="util/Vector.html"title="class in org.bukkit.util">Vector</a></code></div>
<divclass="block">Gets a unit-vector pointing in the direction that this Location is
facing.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>></code></div>
<divclass="block">Returns a list of entities within a bounding box centered around a Location.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><T extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>><br><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><T></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#getNearbyEntitiesByType(java.lang.Class,double,double,double,java.util.function.Predicate)"class="member-name-link">getNearbyEntitiesByType</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><? extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>> clazz,
double xRadius,
double yRadius,
double zRadius,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Predicate.html"title="class or interface in java.util.function"class="external-link">Predicate</a><T> predicate)</code></div>
<divclass="block">Gets all nearby entities of the specified type, within the specified radius (bounding box)</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><T extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>><br><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><T></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#getNearbyEntitiesByType(java.lang.Class,double)"class="member-name-link">getNearbyEntitiesByType</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><? extends T> clazz,
<divclass="block">Gets all nearby entities of the specified type, within the specified radius (bounding box)</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><T extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>><br><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><T></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#getNearbyEntitiesByType(java.lang.Class,double,double)"class="member-name-link">getNearbyEntitiesByType</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><? extends T> clazz,
<divclass="block">Gets all nearby entities of the specified type, within the specified radius, with x and x radius matching (bounding box)</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><T extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>><br><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><T></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#getNearbyEntitiesByType(java.lang.Class,double,double,double)"class="member-name-link">getNearbyEntitiesByType</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><? extends T> clazz,
<divclass="block">Gets all nearby entities of the specified type, within the specified radius (bounding box)</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><T extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>><br><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><T></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#getNearbyEntitiesByType(java.lang.Class,double,double,java.util.function.Predicate)"class="member-name-link">getNearbyEntitiesByType</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><? extends T> clazz,
double xzRadius,
double yRadius,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Predicate.html"title="class or interface in java.util.function"class="external-link">Predicate</a><T> predicate)</code></div>
<divclass="block">Gets all nearby entities of the specified type, within the specified radius, with x and x radius matching (bounding box)</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><T extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>><br><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><T></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#getNearbyEntitiesByType(java.lang.Class,double,java.util.function.Predicate)"class="member-name-link">getNearbyEntitiesByType</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><? extends T> clazz,
double radius,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Predicate.html"title="class or interface in java.util.function"class="external-link">Predicate</a><T> predicate)</code></div>
<divclass="block">Gets all nearby entities of the specified type, within the specified radius (bounding box)</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/LivingEntity.html"title="interface in org.bukkit.entity">LivingEntity</a>></code></div>
<divclass="block">Gets nearby players within the specified radius (bounding box)</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/LivingEntity.html"title="interface in org.bukkit.entity">LivingEntity</a>></code></div>
<divclass="block">Gets nearby players within the specified radius (bounding box)</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/LivingEntity.html"title="interface in org.bukkit.entity">LivingEntity</a>></code></div>
<divclass="block">Gets nearby players within the specified radius (bounding box)</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/LivingEntity.html"title="interface in org.bukkit.entity">LivingEntity</a>></code></div>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Predicate.html"title="class or interface in java.util.function"class="external-link">Predicate</a><<ahref="entity/LivingEntity.html"title="interface in org.bukkit.entity">LivingEntity</a>> predicate)</code></div>
<divclass="block">Gets nearby players within the specified radius (bounding box)</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/LivingEntity.html"title="interface in org.bukkit.entity">LivingEntity</a>></code></div>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Predicate.html"title="class or interface in java.util.function"class="external-link">Predicate</a><<ahref="entity/LivingEntity.html"title="interface in org.bukkit.entity">LivingEntity</a>> predicate)</code></div>
<divclass="block">Gets nearby players within the specified radius (bounding box)</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/LivingEntity.html"title="interface in org.bukkit.entity">LivingEntity</a>></code></div>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Predicate.html"title="class or interface in java.util.function"class="external-link">Predicate</a><<ahref="entity/LivingEntity.html"title="interface in org.bukkit.entity">LivingEntity</a>> predicate)</code></div>
<divclass="block">Gets nearby players within the specified radius (bounding box)</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/Player.html"title="interface in org.bukkit.entity">Player</a>></code></div>
<divclass="block">Gets nearby players within the specified radius (bounding box)</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/Player.html"title="interface in org.bukkit.entity">Player</a>></code></div>
<divclass="block">Gets nearby players within the specified radius (bounding box)</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/Player.html"title="interface in org.bukkit.entity">Player</a>></code></div>
<divclass="block">Gets nearby players within the specified radius (bounding box)</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/Player.html"title="interface in org.bukkit.entity">Player</a>></code></div>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Predicate.html"title="class or interface in java.util.function"class="external-link">Predicate</a><<ahref="entity/Player.html"title="interface in org.bukkit.entity">Player</a>> predicate)</code></div>
<divclass="block">Gets nearby players within the specified radius (bounding box)</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/Player.html"title="interface in org.bukkit.entity">Player</a>></code></div>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Predicate.html"title="class or interface in java.util.function"class="external-link">Predicate</a><<ahref="entity/Player.html"title="interface in org.bukkit.entity">Player</a>> predicate)</code></div>
<divclass="block">Gets nearby players within the specified radius (bounding box)</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/Player.html"title="interface in org.bukkit.entity">Player</a>></code></div>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Predicate.html"title="class or interface in java.util.function"class="external-link">Predicate</a><<ahref="entity/Player.html"title="interface in org.bukkit.entity">Player</a>> predicate)</code></div>
<divclass="block">Safely converts a double (location coordinate) to an int (block
coordinate)</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></code></div>
<divclass="block">Normalizes the given yaw angle to a value between <code>+/-180</code>
degrees.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html"title="class or interface in java.util"class="external-link">Map</a><<ahref="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>,<wbr><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a>></code></div>
<divclass="block">Creates a Map representation of this class.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></code></div>
<divclass="block">Sets the position of this Location and returns itself
This mutates this object, clone first.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#setDirection(org.bukkit.util.Vector)"class="member-name-link">setDirection</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="util/Vector.html"title="class in org.bukkit.util">Vector</a> vector)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#setWorld(org.bukkit.World)"class="member-name-link">setWorld</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="World.html"title="interface in org.bukkit">World</a> world)</code></div>
<divclass="block">Sets the z-coordinate of this location</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></code></div>
<divclass="block">Subtracts the location by another.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#subtract(org.bukkit.Location)"class="member-name-link">subtract</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a> vec)</code></div>
<divclass="block">Subtracts the location by another.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#subtract(org.bukkit.Location,double,double,double)"class="member-name-link">subtract</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a> base,
<divclass="block">Takes the x/y/z from base and subtracts the specified x/y/z to it and returns self
This mutates this object, clone first.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#subtract(org.bukkit.util.Vector)"class="member-name-link">subtract</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="util/Vector.html"title="class in org.bukkit.util">Vector</a> vec)</code></div>
<divclass="deprecation-comment">only encodes y block ranges from -512 to 511 and represents an already changed implementation detail</div>
</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></code></div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></code></div>
<divclass="block">Returns a copy of this location except with y = getWorld().getHighestBlockYAt(this.getBlockX(), this.getBlockZ())</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#toHighestLocation(org.bukkit.HeightMap)"class="member-name-link">toHighestLocation</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="HeightMap.html"title="enum class in org.bukkit">HeightMap</a> heightMap)</code></div>
<divclass="block">Returns a copy of this location except with y = getWorld().getHighestBlockYAt(this.getBlockX(), this.getBlockZ(), heightMap)</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 method-summary-table-tab6"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 method-summary-table-tab6"><code><ahref="#toHighestLocation(com.destroystokyo.paper.HeightmapType)"class="member-name-link">toHighestLocation</a><wbr>(<ahref="../../com/destroystokyo/paper/HeightmapType.html"title="enum class in com.destroystokyo.paper">HeightmapType</a> heightmap)</code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></code></div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="util/Vector.html"title="class in org.bukkit.util">Vector</a></code></div>
<divclass="block">Constructs a new <ahref="util/Vector.html"title="class in org.bukkit.util"><code>Vector</code></a> based on this Location</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></code></div>
<divclass="block">Zero this location's components.</div>
</div>
</div>
</div>
</div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#finalize()"title="class or interface in java.lang"class="external-link">finalize</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#getClass()"title="class or interface in java.lang"class="external-link">getClass</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notify()"title="class or interface in java.lang"class="external-link">notify</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notifyAll()"title="class or interface in java.lang"class="external-link">notifyAll</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait()"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long)"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long,int)"title="class or interface in java.lang"class="external-link">wait</a></code></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="element-name">Location</span><wbr><spanclass="parameters">(<ahref="World.html"title="interface in org.bukkit">World</a> world,
double x,
double y,
double z)</span></div>
<divclass="block">Constructs a new Location with the given coordinates</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>world</code> - The world in which this location resides</dd>
<dd><code>x</code> - The x-coordinate of this new location</dd>
<dd><code>y</code> - The y-coordinate of this new location</dd>
<dd><code>z</code> - The z-coordinate of this new location</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="element-name">Location</span><wbr><spanclass="parameters">(<ahref="World.html"title="interface in org.bukkit">World</a> world,
double x,
double y,
double z,
float yaw,
float pitch)</span></div>
<divclass="block">Constructs a new Location with the given coordinates and direction</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>world</code> - The world in which this location resides</dd>
<dd><code>x</code> - The x-coordinate of this new location</dd>
<dd><code>y</code> - The y-coordinate of this new location</dd>
<dd><code>z</code> - The z-coordinate of this new location</dd>
<dd><code>yaw</code> - The absolute rotation on the x-plane, in degrees</dd>
<dd><code>pitch</code> - The absolute rotation on the y-plane, in degrees</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">void</span> <spanclass="element-name">setWorld</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="World.html"title="interface in org.bukkit">World</a> world)</span></div>
<divclass="block">Sets the world that this location resides in</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>world</code> - New world that this location resides in</dd>
<divclass="block">Checks if world in this location is present and loaded.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>true if is loaded, otherwise false</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getWorld()">
<h3>getWorld</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="World.html"title="interface in org.bukkit">World</a></span> <spanclass="element-name">getWorld</span>()</div>
<divclass="block">Gets the world that this location resides in</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>World that contains this location, or <code>null</code> if it is not set</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html"title="class or interface in java.lang"class="external-link">IllegalArgumentException</a></code> - when world is unloaded</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Chunk.html"title="interface in org.bukkit">Chunk</a></span> <spanclass="element-name">getChunk</span>()</div>
<divclass="block">Gets the chunk at the represented location</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>Chunk at the represented location</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getBlock()">
<h3>getBlock</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="block/Block.html"title="interface in org.bukkit.block">Block</a></span> <spanclass="element-name">getBlock</span>()</div>
<divclass="block">Gets the block at the represented location</div>
<divclass="block">Gets the pitch of this location, measured in degrees.
<ul>
<li>A pitch of 0 represents level forward facing.
<li>A pitch of 90 represents downward facing, or negative y
direction.
<li>A pitch of -90 represents upward facing, or positive y direction.
</ul>
Increasing pitch values the equivalent of looking down.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>the incline's pitch</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getDirection()">
<h3>getDirection</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="util/Vector.html"title="class in org.bukkit.util">Vector</a></span> <spanclass="element-name">getDirection</span>()</div>
<divclass="block">Gets a unit-vector pointing in the direction that this Location is
facing.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>a vector pointing the direction of this location's <ahref="#getPitch()"><code>pitch</code></a> and <ahref="#getYaw()"><code>yaw</code></a></dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></span> <spanclass="element-name">setDirection</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="util/Vector.html"title="class in org.bukkit.util">Vector</a> vector)</span></div>
<divclass="block">Sets the <ahref="#getYaw()"><code>yaw</code></a> and <ahref="#getPitch()"><code>pitch</code></a> to point
in the direction of the vector.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>vector</code> - the direction vector</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></span> <spanclass="element-name">add</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a> vec)</span></div>
<divclass="block">Adds the location by another.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>vec</code> - The other location</dd>
<dt>Returns:</dt>
<dd>the same location</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html"title="class or interface in java.lang"class="external-link">IllegalArgumentException</a></code> - for differing worlds</dd>
<dt>See Also:</dt>
<dd>
<ulclass="see-list">
<li><ahref="util/Vector.html"title="class in org.bukkit.util"><code>Vector</code></a></li>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></span> <spanclass="element-name">add</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="util/Vector.html"title="class in org.bukkit.util">Vector</a> vec)</span></div>
<divclass="block">Adds the location by a vector.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>vec</code> - Vector to use</dd>
<dt>Returns:</dt>
<dd>the same location</dd>
<dt>See Also:</dt>
<dd>
<ulclass="see-list">
<li><ahref="util/Vector.html"title="class in org.bukkit.util"><code>Vector</code></a></li>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></span> <spanclass="element-name">add</span><wbr><spanclass="parameters">(double x,
double y,
double z)</span></div>
<divclass="block">Adds the location by another. Not world-aware.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>x</code> - X coordinate</dd>
<dd><code>y</code> - Y coordinate</dd>
<dd><code>z</code> - Z coordinate</dd>
<dt>Returns:</dt>
<dd>the same location</dd>
<dt>See Also:</dt>
<dd>
<ulclass="see-list">
<li><ahref="util/Vector.html"title="class in org.bukkit.util"><code>Vector</code></a></li>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></span> <spanclass="element-name">subtract</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a> vec)</span></div>
<divclass="block">Subtracts the location by another.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>vec</code> - The other location</dd>
<dt>Returns:</dt>
<dd>the same location</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html"title="class or interface in java.lang"class="external-link">IllegalArgumentException</a></code> - for differing worlds</dd>
<dt>See Also:</dt>
<dd>
<ulclass="see-list">
<li><ahref="util/Vector.html"title="class in org.bukkit.util"><code>Vector</code></a></li>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></span> <spanclass="element-name">subtract</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="util/Vector.html"title="class in org.bukkit.util">Vector</a> vec)</span></div>
<divclass="block">Subtracts the location by a vector.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>vec</code> - The vector to use</dd>
<dt>Returns:</dt>
<dd>the same location</dd>
<dt>See Also:</dt>
<dd>
<ulclass="see-list">
<li><ahref="util/Vector.html"title="class in org.bukkit.util"><code>Vector</code></a></li>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></span> <spanclass="element-name">subtract</span><wbr><spanclass="parameters">(double x,
double y,
double z)</span></div>
<divclass="block">Subtracts the location by another. Not world-aware and
orientation independent.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>x</code> - X coordinate</dd>
<dd><code>y</code> - Y coordinate</dd>
<dd><code>z</code> - Z coordinate</dd>
<dt>Returns:</dt>
<dd>the same location</dd>
<dt>See Also:</dt>
<dd>
<ulclass="see-list">
<li><ahref="util/Vector.html"title="class in org.bukkit.util"><code>Vector</code></a></li>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">double</span> <spanclass="element-name">distance</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a> o)</span></div>
<divclass="block">Get the distance between this location and another. The value of this
method is not cached and uses a costly square-root function, so do not
repeatedly call this method to get the location's magnitude. NaN will
be returned if the inner result of the sqrt() function overflows, which
will be caused if the distance is too long.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>o</code> - The other location</dd>
<dt>Returns:</dt>
<dd>the distance</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html"title="class or interface in java.lang"class="external-link">IllegalArgumentException</a></code> - for differing worlds</dd>
<dt>See Also:</dt>
<dd>
<ulclass="see-list">
<li><ahref="util/Vector.html"title="class in org.bukkit.util"><code>Vector</code></a></li>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">double</span> <spanclass="element-name">distanceSquared</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a> o)</span></div>
<divclass="block">Get the squared distance between this location and another.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>o</code> - The other location</dd>
<dt>Returns:</dt>
<dd>the distance</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html"title="class or interface in java.lang"class="external-link">IllegalArgumentException</a></code> - for differing worlds</dd>
<dt>See Also:</dt>
<dd>
<ulclass="see-list">
<li><ahref="util/Vector.html"title="class in org.bukkit.util"><code>Vector</code></a></li>
</ul>
</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="multiply(double)">
<h3>multiply</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></span> <spanclass="element-name">multiply</span><wbr><spanclass="parameters">(double m)</span></div>
<divclass="block">Performs scalar multiplication, multiplying all components with a
scalar. Not world-aware.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>m</code> - The factor</dd>
<dt>Returns:</dt>
<dd>the same location</dd>
<dt>See Also:</dt>
<dd>
<ulclass="see-list">
<li><ahref="util/Vector.html"title="class in org.bukkit.util"><code>Vector</code></a></li>
</ul>
</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="zero()">
<h3>zero</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></span> <spanclass="element-name">zero</span>()</div>
<divclass="block">Zero this location's components. Not world-aware.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>the same location</dd>
<dt>See Also:</dt>
<dd>
<ulclass="see-list">
<li><ahref="util/Vector.html"title="class in org.bukkit.util"><code>Vector</code></a></li>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></span> <spanclass="element-name">set</span><wbr><spanclass="parameters">(double x,
double y,
double z)</span></div>
<divclass="block">Sets the position of this Location and returns itself
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></span> <spanclass="element-name">add</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a> base,
double x,
double y,
double z)</span></div>
<divclass="block">Takes the x/y/z from base and adds the specified x/y/z to it and returns self
This mutates this object, clone first.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>base</code> - The base coordinate to modify</dd>
<dd><code>x</code> - X coordinate to add to base</dd>
<dd><code>y</code> - Y coordinate to add to base</dd>
<dd><code>z</code> - Z coordinate to add to base</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></span> <spanclass="element-name">subtract</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a> base,
double x,
double y,
double z)</span></div>
<divclass="block">Takes the x/y/z from base and subtracts the specified x/y/z to it and returns self
This mutates this object, clone first.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>base</code> - The base coordinate to modify</dd>
<dd><code>x</code> - X coordinate to subtract from base</dd>
<dd><code>y</code> - Y coordinate to subtract from base</dd>
<dd><code>z</code> - Z coordinate to subtract from base</dd>
<dt>Returns:</dt>
<dd>self (not cloned)</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="toBlockLocation()">
<h3>toBlockLocation</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></span> <spanclass="element-name">toBlockLocation</span>()</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>A new location where X/Y/Z are on the Block location (integer value of X/Y/Z)</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="toBlockKey()">
<h3>toBlockKey</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html"title="class or interface in java.lang"class="external-link">@Deprecated</a>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></span> <spanclass="element-name">toCenterLocation</span>()</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>A new location where X/Y/Z are the center of the block</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="toHighestLocation()">
<h3>toHighestLocation</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></span> <spanclass="element-name">toHighestLocation</span>()</div>
<divclass="block">Returns a copy of this location except with y = getWorld().getHighestBlockYAt(this.getBlockX(), this.getBlockZ())</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>A copy of this location except with y = getWorld().getHighestBlockYAt(this.getBlockX(), this.getBlockZ())</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/NullPointerException.html"title="class or interface in java.lang"class="external-link">NullPointerException</a></code> - if {<ahref="#getWorld()"><code>getWorld()</code></a>} is <code>null</code></dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html"title="class or interface in java.lang"class="external-link">@Deprecated</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></span> <spanclass="element-name">toHighestLocation</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="../../com/destroystokyo/paper/HeightmapType.html"title="enum class in com.destroystokyo.paper">HeightmapType</a> heightmap)</span></div>
<divclass="block">Returns a copy of this location except with y = getWorld().getHighestBlockYAt(this.getBlockX(), this.getBlockZ(), heightmap)</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>heightmap</code> - The heightmap to use for finding the highest y location.</dd>
<dt>Returns:</dt>
<dd>A copy of this location except with y = getWorld().getHighestBlockYAt(this.getBlockX(), this.getBlockZ(), heightmap)</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/NullPointerException.html"title="class or interface in java.lang"class="external-link">NullPointerException</a></code> - if {<ahref="#getWorld()"><code>getWorld()</code></a>} is <code>null</code></dd>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/UnsupportedOperationException.html"title="class or interface in java.lang"class="external-link">UnsupportedOperationException</a></code> - if <ahref="World.html#getHighestBlockYAt(int,int,com.destroystokyo.paper.HeightmapType)"><code>World.getHighestBlockYAt(int, int, com.destroystokyo.paper.HeightmapType)</code></a> does not support the specified heightmap</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></span> <spanclass="element-name">toHighestLocation</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="HeightMap.html"title="enum class in org.bukkit">HeightMap</a> heightMap)</span></div>
<divclass="block">Returns a copy of this location except with y = getWorld().getHighestBlockYAt(this.getBlockX(), this.getBlockZ(), heightMap)</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>heightMap</code> - The heightmap to use for finding the highest y location.</dd>
<dt>Returns:</dt>
<dd>A copy of this location except with y = getWorld().getHighestBlockYAt(this.getBlockX(), this.getBlockZ(), heightMap)</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">boolean</span> <spanclass="element-name">createExplosion</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a> source,
float power)</span></div>
<divclass="block">Creates explosion at this location with given power, with the specified entity as the source.
Will break blocks and ignite blocks on fire.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>source</code> - The source entity of the explosion</dd>
<dd><code>power</code> - The power of explosion, where 4F is TNT</dd>
<dt>Returns:</dt>
<dd>false if explosion was canceled, otherwise true</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">boolean</span> <spanclass="element-name">createExplosion</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a> source,
float power,
boolean setFire)</span></div>
<divclass="block">Creates explosion at this location with given power and optionally
setting blocks on fire, with the specified entity as the source.
Will break blocks.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>source</code> - The source entity of the explosion</dd>
<dd><code>power</code> - The power of explosion, where 4F is TNT</dd>
<dd><code>setFire</code> - Whether or not to set blocks on fire</dd>
<dt>Returns:</dt>
<dd>false if explosion was canceled, otherwise true</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">boolean</span> <spanclass="element-name">createExplosion</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a> source,
float power,
boolean setFire,
boolean breakBlocks)</span></div>
<divclass="block">Creates explosion at this location with given power and optionally
setting blocks on fire, with the specified entity as the source.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>source</code> - The source entity of the explosion</dd>
<dd><code>power</code> - The power of explosion, where 4F is TNT</dd>
<dd><code>setFire</code> - Whether or not to set blocks on fire</dd>
<dd><code>breakBlocks</code> - Whether or not to have blocks be destroyed</dd>
<dt>Returns:</dt>
<dd>false if explosion was canceled, otherwise true</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>></span> <spanclass="element-name">getNearbyEntities</span><wbr><spanclass="parameters">(double x,
double y,
double z)</span></div>
<divclass="block">Returns a list of entities within a bounding box centered around a Location.
Some implementations may impose artificial restrictions on the size of the search bounding box.</div>
<dlclass="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>the collection of entities near location. This will always be a non-null collection.</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/LivingEntity.html"title="interface in org.bukkit.entity">LivingEntity</a>></span> <spanclass="element-name">getNearbyLivingEntities</span><wbr><spanclass="parameters">(double radius)</span></div>
<divclass="block">Gets nearby players within the specified radius (bounding box)</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>radius</code> - X Radius</dd>
<dt>Returns:</dt>
<dd>the collection of entities near location. This will always be a non-null collection.</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/LivingEntity.html"title="interface in org.bukkit.entity">LivingEntity</a>></span> <spanclass="element-name">getNearbyLivingEntities</span><wbr><spanclass="parameters">(double xzRadius,
double yRadius)</span></div>
<divclass="block">Gets nearby players within the specified radius (bounding box)</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>xzRadius</code> - X/Z Radius</dd>
<dd><code>yRadius</code> - Y Radius</dd>
<dt>Returns:</dt>
<dd>the collection of living entities near location. This will always be a non-null collection.</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/LivingEntity.html"title="interface in org.bukkit.entity">LivingEntity</a>></span> <spanclass="element-name">getNearbyLivingEntities</span><wbr><spanclass="parameters">(double xRadius,
double yRadius,
double zRadius)</span></div>
<divclass="block">Gets nearby players within the specified radius (bounding box)</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>xRadius</code> - X Radius</dd>
<dd><code>yRadius</code> - Y Radius</dd>
<dd><code>zRadius</code> - Z radius</dd>
<dt>Returns:</dt>
<dd>the collection of living entities near location. This will always be a non-null collection.</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/LivingEntity.html"title="interface in org.bukkit.entity">LivingEntity</a>></span> <spanclass="element-name">getNearbyLivingEntities</span><wbr><spanclass="parameters">(double radius,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Predicate.html"title="class or interface in java.util.function"class="external-link">Predicate</a><<ahref="entity/LivingEntity.html"title="interface in org.bukkit.entity">LivingEntity</a>> predicate)</span></div>
<divclass="block">Gets nearby players within the specified radius (bounding box)</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>radius</code> - Radius</dd>
<dd><code>predicate</code> - a predicate used to filter results</dd>
<dt>Returns:</dt>
<dd>the collection of living entities near location. This will always be a non-null collection.</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/LivingEntity.html"title="interface in org.bukkit.entity">LivingEntity</a>></span> <spanclass="element-name">getNearbyLivingEntities</span><wbr><spanclass="parameters">(double xzRadius,
double yRadius,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Predicate.html"title="class or interface in java.util.function"class="external-link">Predicate</a><<ahref="entity/LivingEntity.html"title="interface in org.bukkit.entity">LivingEntity</a>> predicate)</span></div>
<divclass="block">Gets nearby players within the specified radius (bounding box)</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>xzRadius</code> - X/Z Radius</dd>
<dd><code>yRadius</code> - Y Radius</dd>
<dd><code>predicate</code> - a predicate used to filter results</dd>
<dt>Returns:</dt>
<dd>the collection of living entities near location. This will always be a non-null collection.</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/LivingEntity.html"title="interface in org.bukkit.entity">LivingEntity</a>></span> <spanclass="element-name">getNearbyLivingEntities</span><wbr><spanclass="parameters">(double xRadius,
double yRadius,
double zRadius,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Predicate.html"title="class or interface in java.util.function"class="external-link">Predicate</a><<ahref="entity/LivingEntity.html"title="interface in org.bukkit.entity">LivingEntity</a>> predicate)</span></div>
<divclass="block">Gets nearby players within the specified radius (bounding box)</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>xRadius</code> - X Radius</dd>
<dd><code>yRadius</code> - Y Radius</dd>
<dd><code>zRadius</code> - Z radius</dd>
<dd><code>predicate</code> - a predicate used to filter results</dd>
<dt>Returns:</dt>
<dd>the collection of living entities near location. This will always be a non-null collection.</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/Player.html"title="interface in org.bukkit.entity">Player</a>></span> <spanclass="element-name">getNearbyPlayers</span><wbr><spanclass="parameters">(double radius)</span></div>
<divclass="block">Gets nearby players within the specified radius (bounding box)</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>radius</code> - X/Y/Z Radius</dd>
<dt>Returns:</dt>
<dd>the collection of players near location. This will always be a non-null collection.</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/Player.html"title="interface in org.bukkit.entity">Player</a>></span> <spanclass="element-name">getNearbyPlayers</span><wbr><spanclass="parameters">(double xzRadius,
double yRadius)</span></div>
<divclass="block">Gets nearby players within the specified radius (bounding box)</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>xzRadius</code> - X/Z Radius</dd>
<dd><code>yRadius</code> - Y Radius</dd>
<dt>Returns:</dt>
<dd>the collection of players near location. This will always be a non-null collection.</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/Player.html"title="interface in org.bukkit.entity">Player</a>></span> <spanclass="element-name">getNearbyPlayers</span><wbr><spanclass="parameters">(double xRadius,
double yRadius,
double zRadius)</span></div>
<divclass="block">Gets nearby players within the specified radius (bounding box)</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>xRadius</code> - X Radius</dd>
<dd><code>yRadius</code> - Y Radius</dd>
<dd><code>zRadius</code> - Z Radius</dd>
<dt>Returns:</dt>
<dd>the collection of players near location. This will always be a non-null collection.</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/Player.html"title="interface in org.bukkit.entity">Player</a>></span> <spanclass="element-name">getNearbyPlayers</span><wbr><spanclass="parameters">(double radius,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Predicate.html"title="class or interface in java.util.function"class="external-link">Predicate</a><<ahref="entity/Player.html"title="interface in org.bukkit.entity">Player</a>> predicate)</span></div>
<divclass="block">Gets nearby players within the specified radius (bounding box)</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>radius</code> - X/Y/Z Radius</dd>
<dd><code>predicate</code> - a predicate used to filter results</dd>
<dt>Returns:</dt>
<dd>the collection of players near location. This will always be a non-null collection.</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/Player.html"title="interface in org.bukkit.entity">Player</a>></span> <spanclass="element-name">getNearbyPlayers</span><wbr><spanclass="parameters">(double xzRadius,
double yRadius,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Predicate.html"title="class or interface in java.util.function"class="external-link">Predicate</a><<ahref="entity/Player.html"title="interface in org.bukkit.entity">Player</a>> predicate)</span></div>
<divclass="block">Gets nearby players within the specified radius (bounding box)</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>xzRadius</code> - X/Z Radius</dd>
<dd><code>yRadius</code> - Y Radius</dd>
<dd><code>predicate</code> - a predicate used to filter results</dd>
<dt>Returns:</dt>
<dd>the collection of players near location. This will always be a non-null collection.</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="entity/Player.html"title="interface in org.bukkit.entity">Player</a>></span> <spanclass="element-name">getNearbyPlayers</span><wbr><spanclass="parameters">(double xRadius,
double yRadius,
double zRadius,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Predicate.html"title="class or interface in java.util.function"class="external-link">Predicate</a><<ahref="entity/Player.html"title="interface in org.bukkit.entity">Player</a>> predicate)</span></div>
<divclass="block">Gets nearby players within the specified radius (bounding box)</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>xRadius</code> - X Radius</dd>
<dd><code>yRadius</code> - Y Radius</dd>
<dd><code>zRadius</code> - Z Radius</dd>
<dd><code>predicate</code> - a predicate used to filter results</dd>
<dt>Returns:</dt>
<dd>the collection of players near location. This will always be a non-null collection.</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="type-parameters"><T extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>></span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><T></span> <spanclass="element-name">getNearbyEntitiesByType</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><? extends T> clazz,
double radius)</span></div>
<divclass="block">Gets all nearby entities of the specified type, within the specified radius (bounding box)</div>
<dlclass="notes">
<dt>Type Parameters:</dt>
<dd><code>T</code> - the entity type</dd>
<dt>Parameters:</dt>
<dd><code>clazz</code> - Type to filter by</dd>
<dd><code>radius</code> - X/Y/Z radius to search within</dd>
<dt>Returns:</dt>
<dd>the collection of entities of type clazz near location. This will always be a non-null collection.</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="type-parameters"><T extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>></span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><T></span> <spanclass="element-name">getNearbyEntitiesByType</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><? extends T> clazz,
double xzRadius,
double yRadius)</span></div>
<divclass="block">Gets all nearby entities of the specified type, within the specified radius, with x and x radius matching (bounding box)</div>
<dlclass="notes">
<dt>Type Parameters:</dt>
<dd><code>T</code> - the entity type</dd>
<dt>Parameters:</dt>
<dd><code>clazz</code> - Type to filter by</dd>
<dd><code>xzRadius</code> - X/Z radius to search within</dd>
<dd><code>yRadius</code> - Y radius to search within</dd>
<dt>Returns:</dt>
<dd>the collection of entities near location. This will always be a non-null collection.</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="type-parameters"><T extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>></span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><T></span> <spanclass="element-name">getNearbyEntitiesByType</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><? extends T> clazz,
double xRadius,
double yRadius,
double zRadius)</span></div>
<divclass="block">Gets all nearby entities of the specified type, within the specified radius (bounding box)</div>
<dlclass="notes">
<dt>Type Parameters:</dt>
<dd><code>T</code> - the entity type</dd>
<dt>Parameters:</dt>
<dd><code>clazz</code> - Type to filter by</dd>
<dd><code>xRadius</code> - X Radius</dd>
<dd><code>yRadius</code> - Y Radius</dd>
<dd><code>zRadius</code> - Z Radius</dd>
<dt>Returns:</dt>
<dd>the collection of entities near location. This will always be a non-null collection.</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="type-parameters"><T extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>></span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><T></span> <spanclass="element-name">getNearbyEntitiesByType</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><? extends T> clazz,
double radius,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Predicate.html"title="class or interface in java.util.function"class="external-link">Predicate</a><T> predicate)</span></div>
<divclass="block">Gets all nearby entities of the specified type, within the specified radius (bounding box)</div>
<dlclass="notes">
<dt>Type Parameters:</dt>
<dd><code>T</code> - the entity type</dd>
<dt>Parameters:</dt>
<dd><code>clazz</code> - Type to filter by</dd>
<dd><code>radius</code> - X/Y/Z radius to search within</dd>
<dd><code>predicate</code> - a predicate used to filter results</dd>
<dt>Returns:</dt>
<dd>the collection of entities near location. This will always be a non-null collection.</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="type-parameters"><T extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>></span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><T></span> <spanclass="element-name">getNearbyEntitiesByType</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><? extends T> clazz,
double xzRadius,
double yRadius,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Predicate.html"title="class or interface in java.util.function"class="external-link">Predicate</a><T> predicate)</span></div>
<divclass="block">Gets all nearby entities of the specified type, within the specified radius, with x and x radius matching (bounding box)</div>
<dlclass="notes">
<dt>Type Parameters:</dt>
<dd><code>T</code> - the entity type</dd>
<dt>Parameters:</dt>
<dd><code>clazz</code> - Type to filter by</dd>
<dd><code>xzRadius</code> - X/Z radius to search within</dd>
<dd><code>yRadius</code> - Y radius to search within</dd>
<dd><code>predicate</code> - a predicate used to filter results</dd>
<dt>Returns:</dt>
<dd>the collection of entities near location. This will always be a non-null collection.</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="type-parameters"><T extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>></span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><T></span> <spanclass="element-name">getNearbyEntitiesByType</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Class.html"title="class or interface in java.lang"class="external-link">Class</a><? extends <ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>> clazz,
double xRadius,
double yRadius,
double zRadius,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Predicate.html"title="class or interface in java.util.function"class="external-link">Predicate</a><T> predicate)</span></div>
<divclass="block">Gets all nearby entities of the specified type, within the specified radius (bounding box)</div>
<dlclass="notes">
<dt>Type Parameters:</dt>
<dd><code>T</code> - the entity type</dd>
<dt>Parameters:</dt>
<dd><code>clazz</code> - Type to filter by</dd>
<dd><code>xRadius</code> - X Radius</dd>
<dd><code>yRadius</code> - Y Radius</dd>
<dd><code>zRadius</code> - Z Radius</dd>
<dd><code>predicate</code> - a predicate used to filter results</dd>
<dt>Returns:</dt>
<dd>the collection of entities near location. This will always be a non-null collection.</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">boolean</span> <spanclass="element-name">equals</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a> obj)</span></div>
<dlclass="notes">
<dt>Overrides:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"title="class or interface in java.lang"class="external-link">equals</a></code> in class <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></code></dd>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode()"title="class or interface in java.lang"class="external-link">hashCode</a></code> in class <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></code></dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="toString()">
<h3>toString</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></span> <spanclass="element-name">toString</span>()</div>
<dlclass="notes">
<dt>Overrides:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#toString()"title="class or interface in java.lang"class="external-link">toString</a></code> in class <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></code></dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="toVector()">
<h3>toVector</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="util/Vector.html"title="class in org.bukkit.util">Vector</a></span> <spanclass="element-name">toVector</span>()</div>
<divclass="block">Constructs a new <ahref="util/Vector.html"title="class in org.bukkit.util"><code>Vector</code></a> based on this Location</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>New Vector containing the coordinates represented by this
Location</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="clone()">
<h3>clone</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></span> <spanclass="element-name">clone</span>()</div>
<dlclass="notes">
<dt>Overrides:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#clone()"title="class or interface in java.lang"class="external-link">clone</a></code> in class <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></code></dd>
throws <spanclass="exceptions"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html"title="class or interface in java.lang"class="external-link">IllegalArgumentException</a></span></div>
<divclass="block">Check if each component of this Location is finite.</div>
<dlclass="notes">
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html"title="class or interface in java.lang"class="external-link">IllegalArgumentException</a></code> - if any component is not finite</dd>
<divclass="block">Safely converts a double (location coordinate) to an int (block
coordinate)</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>loc</code> - Precise coordinate</dd>
<dt>Returns:</dt>
<dd>Block coordinate</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="serialize()">
<h3>serialize</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html"title="class or interface in java.util"class="external-link">Map</a><<ahref="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>,<wbr><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a>></span> <spanclass="element-name">serialize</span>()</div>
<divclass="block"><spanclass="descfrm-type-label">Description copied from interface: <code><ahref="configuration/serialization/ConfigurationSerializable.html#serialize()">ConfigurationSerializable</a></code></span></div>
<divclass="block">Creates a Map representation of this class.
<p>
This class must provide a method to restore this class, as defined in
the <ahref="configuration/serialization/ConfigurationSerializable.html"title="interface in org.bukkit.configuration.serialization"><code>ConfigurationSerializable</code></a> interface javadocs.</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="configuration/serialization/ConfigurationSerializable.html#serialize()">serialize</a></code> in interface <code><ahref="configuration/serialization/ConfigurationSerializable.html"title="interface in org.bukkit.configuration.serialization">ConfigurationSerializable</a></code></dd>
<dt>Returns:</dt>
<dd>Map containing the current state of this class</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public static</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Location.html"title="class in org.bukkit">Location</a></span> <spanclass="element-name">deserialize</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html"title="class or interface in java.util"class="external-link">Map</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a>,<wbr><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a>> args)</span></div>
<divclass="block">Required method for deserialization</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>args</code> - map to deserialize</dd>
<dt>Returns:</dt>
<dd>deserialized location</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html"title="class or interface in java.lang"class="external-link">IllegalArgumentException</a></code> - if the world don't exists</dd>
<dt>See Also:</dt>
<dd>
<ulclass="see-list">
<li><ahref="configuration/serialization/ConfigurationSerializable.html"title="interface in org.bukkit.configuration.serialization"><code>ConfigurationSerializable</code></a></li>