1 package com.irtimaled.bbor.client.models;
3 import com.irtimaled.bbor.common.BoundingBoxType;
4 import com.irtimaled.bbor.common.TypeHelper;
5 import com.irtimaled.bbor.common.models.Coords;
7 public class BoundingBoxConduit extends BoundingBoxSphere {
8 private final int level;
10 private BoundingBoxConduit(Coords coords, int level, int radius) {
11 super(new Point(coords).offset(0.5D, 0.5D, 0.5D), radius, BoundingBoxType.Conduit);
16 public BoundingBoxConduit(Coords coords, int level) {
17 this(coords, level, 16 * level);
21 public int hashCode() {
22 return TypeHelper.combineHashCodes(getType().hashCode(), getPoint().hashCode());
26 public boolean equals(Object obj) {
27 if (this == obj) return true;
28 if (obj == null || getClass() != obj.getClass()) return false;
29 BoundingBoxConduit other = (BoundingBoxConduit) obj;
30 return getPoint().equals(other.getPoint());
33 public int getLevel() {