1 package com.irtimaled.bbor.client.models;
3 import com.irtimaled.bbor.common.BoundingBoxType;
4 import com.irtimaled.bbor.common.models.BoundingBoxSphere;
5 import com.irtimaled.bbor.common.models.Coords;
6 import com.irtimaled.bbor.common.models.Point;
8 import java.util.HashSet;
11 public class BoundingBoxSpawningSphere extends BoundingBoxSphere {
12 public static final int SAFE_RADIUS = 24;
13 public static final int SPAWN_RADIUS = 128;
15 private final Set<Coords> blocks = new HashSet<>();
16 private Integer spawnableCount;
18 public BoundingBoxSpawningSphere(Point point) {
19 super(point, SPAWN_RADIUS, BoundingBoxType.AFKSphere);
22 public Set<Coords> getBlocks() {
26 public boolean isWithinSphere(Point point) {
27 return this.getPoint().getDistance(point) <= getRadius() + 0.5D;
30 public void setSpawnableCount(int count) {
31 this.spawnableCount = count;
34 public Integer getSpawnableSpacesCount() {
35 return this.spawnableCount;