import com.irtimaled.bbor.common.BoundingBoxType;
import com.irtimaled.bbor.common.models.BoundingBoxSphere;
+import com.irtimaled.bbor.common.models.Coords;
import com.irtimaled.bbor.common.models.Point;
+import java.util.HashSet;
+import java.util.Set;
+
public class BoundingBoxSpawningSphere extends BoundingBoxSphere {
public static final int SAFE_RADIUS = 24;
public static final int SPAWN_RADIUS = 128;
+ private final Set<Coords> blocks = new HashSet<>();
private Integer spawnableCount;
public BoundingBoxSpawningSphere(Point point) {
super(point, SPAWN_RADIUS, BoundingBoxType.AFKSphere);
}
+ public Set<Coords> getBlocks() {
+ return blocks;
+ }
+
public boolean isWithinSphere(Point point) {
return this.getPoint().getDistance(point) <= getRadius() + 0.5D;
}