package ethanjones.modularworld.block;

import ethanjones.modularworld.core.data.DataGroup;
import ethanjones.modularworld.graphics.world.BlockTextureHandler;

public abstract class Block {
  protected BlockTextureHandler textureHandler;
  String mainMaterial;

  public Block(String mainMaterial) {
    this.mainMaterial = mainMaterial;
  }

  public void loadGraphics() {
    textureHandler = new BlockTextureHandler(mainMaterial);
  }

  public BlockTextureHandler getTextureHandler(DataGroup data) {
    return textureHandler;
  }

}

@@ -33,16 +33,106 @@
 block;%0A%0A
+import com.badlogic.gdx.math.Vector3;%0Aimport com.badlogic.gdx.math.collision.BoundingBox;%0A
 import e
@@ -273,16 +273,130 @@
 Block %7B%0A
+  private static BoundingBox fullBlockBoundingBox = new BoundingBox(new Vector3(0, 0, 0), new Vector3(1, 1, 1));%0A%0A
   protec
@@ -733,10 +733,88 @@
 r;%0A  %7D%0A%0A
+  public BoundingBox getBoundingBox() %7B%0A    return fullBlockBoundingBox;%0A  %7D%0A%0A
 %7D%0A

Add method to get bounding box