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