diff --git a/paper-api/src/main/java/org/bukkit/entity/Entity.java b/paper-api/src/main/java/org/bukkit/entity/Entity.java index 8689c924c9..80c4b5a99b 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Entity.java +++ b/paper-api/src/main/java/org/bukkit/entity/Entity.java @@ -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 List of entities nearby + */ + public List getNearbyEntities(double x, double y, double z); + /** * Returns a unique id for this entity *