MCPcopy Index your code
hub / github.com/PaperMC/Paper / getNearbyEntities

Method getNearbyEntities

paper-api/src/main/java/org/bukkit/Location.java:856–862  ·  view source on GitHub ↗

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. @param x 1/2 the size of the box along the x-axis @param y 1/2 the size of the box along the y-axis @param z 1/2 the size

(final double x, final double y, final double z)

Source from the content-addressed store, hash-verified

854 * @return the collection of entities near location. This will always be a non-null collection.
855 */
856 public @NotNull Collection<Entity> getNearbyEntities(final double x, final double y, final double z) {
857 final World world = this.getWorld();
858 if (world == null) {
859 throw new IllegalArgumentException("Location has no world");
860 }
861 return world.getNearbyEntities(this, x, y, z);
862 }
863
864 /**
865 * Gets nearby players within the specified radius (bounding box)

Callers

nothing calls this directly

Calls 2

getWorldMethod · 0.95
getNearbyEntitiesMethod · 0.95

Tested by

no test coverage detected