Commits
Nathan Wolf authored and md_5 committed 8d91199e35c
434 434 | */ |
435 435 | public Collection<Entity> getEntitiesByClasses(Class<?>... classes); |
436 436 | |
437 437 | /** |
438 438 | * Get a list of all players in this World |
439 439 | * |
440 440 | * @return A list of all Players currently residing in this world |
441 441 | */ |
442 442 | public List<Player> getPlayers(); |
443 443 | |
444 + | /** |
445 + | * Returns a list of entities within a bounding box centered around a Location. |
446 + | * |
447 + | * Some implementations may impose artificial restrictions on the size of the search bounding box. |
448 + | * |
449 + | * @param location The center of the bounding box |
450 + | * @param x 1/2 the size of the box along x axis |
451 + | * @param y 1/2 the size of the box along y axis |
452 + | * @param z 1/2 the size of the box along z axis |
453 + | * @return the collection of entities near location. This will always be a non-null collection. |
454 + | */ |
455 + | public Collection<Entity> getNearbyEntities(Location location, double x, double y, double z); |
456 + | |
444 457 | /** |
445 458 | * Gets the unique name of this world |
446 459 | * |
447 460 | * @return Name of this world |
448 461 | */ |
449 462 | public String getName(); |
450 463 | |
451 464 | /** |
452 465 | * Gets the Unique ID of this world |
453 466 | * |