]> git.lizzy.rs Git - BoundingBoxOutlineReloaded.git/blobdiff - src/main/java/com/irtimaled/bbor/client/models/BoundingBoxSpawningSphere.java
Change Sphere center to use Point not Coords and Offsets
[BoundingBoxOutlineReloaded.git] / src / main / java / com / irtimaled / bbor / client / models / BoundingBoxSpawningSphere.java
index dd5c76ad20f45d3d263189bbd31070a2bcc2ec78..8229e97b10164d5ff5b4e27563b7178558be44c3 100644 (file)
@@ -2,7 +2,7 @@ package com.irtimaled.bbor.client.models;
 
 import com.irtimaled.bbor.common.BoundingBoxType;
 import com.irtimaled.bbor.common.models.BoundingBoxSphere;
-import com.irtimaled.bbor.common.models.Coords;
+import com.irtimaled.bbor.common.models.Point;
 
 public class BoundingBoxSpawningSphere extends BoundingBoxSphere {
     public static final int SAFE_RADIUS = 24;
@@ -10,16 +10,8 @@ public class BoundingBoxSpawningSphere extends BoundingBoxSphere {
 
     private Integer spawnableCount;
 
-    public BoundingBoxSpawningSphere(Coords coords, double xOffset, double yOffset, double zOffset) {
-        super(coords, 128, BoundingBoxType.AFKSphere);
-        setCenterOffsets(xOffset, yOffset, zOffset);
-    }
-
-    public boolean isCenter(Coords coords, double xOffset, double yOffset, double zOffset) {
-        return this.getCenter().equals(coords) &&
-                this.getCenterOffsetX() == xOffset &&
-                this.getCenterOffsetY() == yOffset &&
-                this.getCenterOffsetZ() == zOffset;
+    public BoundingBoxSpawningSphere(Point point) {
+        super(point, SPAWN_RADIUS, BoundingBoxType.AFKSphere);
     }
 
     public void setSpawnableCount(int count) {