1 package com.irtimaled.bbor.client.models;
3 import com.irtimaled.bbor.common.BoundingBoxType;
4 import net.minecraft.util.math.BlockPos;
6 import java.util.HashSet;
9 public class BoundingBoxSpawningSphere extends BoundingBoxSphere {
10 public static final int SAFE_RADIUS = 24;
11 public static final int SPAWN_RADIUS = 128;
13 private final Set<BlockPos> blocks = new HashSet<>();
14 private Integer spawnableCount;
16 public BoundingBoxSpawningSphere(Point point) {
17 super(point, SPAWN_RADIUS, BoundingBoxType.AFKSphere);
20 public Set<BlockPos> getBlocks() {
24 public boolean isWithinSphere(Point point) {
25 return this.getPoint().getDistance(point) <= getRadius() + 0.5D;
28 public void setSpawnableCount(int count) {
29 this.spawnableCount = count;
32 public Integer getSpawnableSpacesCount() {
33 return this.spawnableCount;