public void render() { // Update the viewing direction setViewingDirection(_yaw, _pitch); if ((Boolean) ConfigurationManager.getInstance().getConfig().get("System.Debug.debugCollision")) { getAABB().render(2f); ArrayList<BlockPosition> blocks = gatherAdjacentBlockPositions(getPosition()); for (int i = 0; i < blocks.size(); i++) { BlockPosition p = blocks.get(i); AABB blockAABB = Block.AABBForBlockAt(p.x, p.y, p.z); blockAABB.render(2f); } } }