mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 04:05:50 -07:00
@@ -6,6 +6,8 @@ import org.bukkit.Server;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Represents a base entity in the world
|
||||
*/
|
||||
@@ -70,6 +72,16 @@ public interface Entity {
|
||||
*/
|
||||
public void teleportTo(Entity destination);
|
||||
|
||||
/**
|
||||
* Returns a list of entities within a bounding box defined by x,y,z centered around player
|
||||
*
|
||||
* @param x Size of the box along x axis
|
||||
* @param y Size of the box along y axis
|
||||
* @param z Size of the box along z axis
|
||||
* @return List<Entity> List of entities nearby
|
||||
*/
|
||||
public List<org.bukkit.entity.Entity> getNearbyEntities(double x, double y, double z);
|
||||
|
||||
/**
|
||||
* Returns a unique id for this entity
|
||||
*
|
||||
|
Reference in New Issue
Block a user