geforkt von Mirrors/Paper
Add a getNearbyEntities method to get entities which are within range of a specified location.
By: Nathan Wolf <nathan@elmakers.com>
Dieser Commit ist enthalten in:
Ursprung
7e256ae56a
Commit
81f9656c2b
@ -441,6 +441,19 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
||||
*/
|
||||
public List<Player> getPlayers();
|
||||
|
||||
/**
|
||||
* 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 location The center of the bounding box
|
||||
* @param x 1/2 the size of the box along x axis
|
||||
* @param y 1/2 the size of the box along y axis
|
||||
* @param z 1/2 the size of the box along z axis
|
||||
* @return the collection of entities near location. This will always be a non-null collection.
|
||||
*/
|
||||
public Collection<Entity> getNearbyEntities(Location location, double x, double y, double z);
|
||||
|
||||
/**
|
||||
* Gets the unique name of this world
|
||||
*
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren