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;
7 public class BoundingBoxSpawningSphere extends BoundingBoxSphere {
8 public static final int SAFE_RADIUS = 24;
9 public static final int SPAWN_RADIUS = 128;
11 private Integer spawnableCount;
13 public BoundingBoxSpawningSphere(Coords coords, double xOffset, double yOffset, double zOffset) {
14 super(coords, 128, BoundingBoxType.AFKSphere);
15 setCenterOffsets(xOffset, yOffset, zOffset);
18 public boolean isCenter(Coords coords, double xOffset, double yOffset, double zOffset) {
19 return this.getCenter().equals(coords) &&
20 this.getCenterOffsetX() == xOffset &&
21 this.getCenterOffsetY() == yOffset &&
22 this.getCenterOffsetZ() == zOffset;
25 public void setSpawnableCount(int count) {
26 this.spawnableCount = count;
29 public Integer getSpawnableSpacesCount() {
30 return this.spawnableCount;