]> git.lizzy.rs Git - BoundingBoxOutlineReloaded.git/blob - src/main/java/com/irtimaled/bbor/common/models/BoundingBoxSpawningSphere.java
Add conduit processing and rendering
[BoundingBoxOutlineReloaded.git] / src / main / java / com / irtimaled / bbor / common / models / BoundingBoxSpawningSphere.java
1 package com.irtimaled.bbor.common.models;
2
3 import com.irtimaled.bbor.common.BoundingBoxType;
4
5 public class BoundingBoxSpawningSphere extends BoundingBoxSphere {
6     public static final int SAFE_RADIUS = 24;
7     public static final int SPAWN_RADIUS = 128;
8
9     private Integer spawnableCount;
10
11     public BoundingBoxSpawningSphere(Coords coords, double xOffset, double yOffset, double zOffset) {
12         super(coords, 128, BoundingBoxType.AFKSphere);
13         setCenterOffsets(xOffset, yOffset, zOffset);
14     }
15
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;
21     }
22
23     public void setSpawnableCount(int count) {
24         this.spawnableCount = count;
25     }
26
27     public Integer getSpawnableSpacesCount() {
28         return this.spawnableCount;
29     }
30 }