1 package com.irtimaled.bbor.common.models;
3 import com.irtimaled.bbor.common.BoundingBoxType;
5 public class BoundingBoxSpawningSphere extends BoundingBoxSphere {
6 public static final int SAFE_RADIUS = 24;
7 public static final int SPAWN_RADIUS = 128;
9 private Integer spawnableCount;
11 public BoundingBoxSpawningSphere(Coords coords, double xOffset, double yOffset, double zOffset) {
12 super(coords, 128, BoundingBoxType.AFKSphere);
13 setCenterOffsets(xOffset, yOffset, zOffset);
16 public boolean isCenter(Coords coords, double xOffset, double yOffset, double zOffset) {
17 return this.getCenter().equals(coords) &&
18 this.getCenterOffsetX() == xOffset &&
19 this.getCenterOffsetY() == yOffset &&
20 this.getCenterOffsetZ() == zOffset;
23 public void setSpawnableCount(int count) {
24 this.spawnableCount = count;
27 public Integer getSpawnableSpacesCount() {
28 return this.spawnableCount;