]> git.lizzy.rs Git - BoundingBoxOutlineReloaded.git/blob - src/main/java/com/irtimaled/bbor/common/models/AbstractBoundingBox.java
535d1cd76154d6bd531a0017a555337b8e5091ae
[BoundingBoxOutlineReloaded.git] / src / main / java / com / irtimaled / bbor / common / models / AbstractBoundingBox.java
1 package com.irtimaled.bbor.common.models;
2
3 import com.irtimaled.bbor.common.BoundingBoxType;
4
5 import java.awt.*;
6
7 public abstract class AbstractBoundingBox {
8     private final BoundingBoxType type;
9
10     protected AbstractBoundingBox(BoundingBoxType type) {
11         this.type = type;
12     }
13
14     public Color getColor() {
15         return type.getColor();
16     }
17
18     public Boolean shouldRender() {
19         return type.shouldRender();
20     }
21
22     public abstract Boolean intersectsBounds(int minX, int minZ, int maxX, int maxZ);
23
24     public String getTypeName() {
25         return type.getName();
26     }
27
28     public BoundingBoxType getType() {
29         return type;
30     }
31 }