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)
| 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) |
nothing calls this directly
no test coverage detected