To retrieve a list of nearby entities of an entity, one can use
List<Entity> nearby = entity.getNearbyEntities(double x, double y, double z);
Bukkit will then calculate a bounding box centered around entity, having as parameters:
x: 1/2 the size of the box along x axis
y: 1/2 the size ...