Skip to content

Commit cec35d2

Browse files
committed
Added AABBs.INFINITE (for bukkit compat)
1 parent c3e0b11 commit cec35d2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main/java/dev/latvian/mods/klib/math/AABBs.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ public interface AABBs {
1212
AABB CENTERED_X_AXIS = new AABB(-0.5D, 0D, 0D, 0.5D, 0D, 0D);
1313
AABB CENTERED_Y_AXIS = new AABB(0D, -0.5D, 0D, 0D, 0.5D, 0D);
1414
AABB CENTERED_Z_AXIS = new AABB(0D, 0D, -0.5D, 0D, 0D, 0.5D);
15+
AABB INFINITE = new AABB(Double.NEGATIVE_INFINITY, Double.NEGATIVE_INFINITY, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY);
1516
}

src/main/java/dev/latvian/mods/klib/math/VoxelShapeBox.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public record VoxelShapeBox(List<Line> edges, List<AABB> boxes, boolean singleBo
2424
public static final VoxelShapeBox EMPTY = new VoxelShapeBox(List.of(), List.of(), false);
2525
public static final VoxelShapeBox FULL = of(AABBs.FULL);
2626
public static final VoxelShapeBox FULL_16 = of(AABBs.FULL_16);
27-
public static final VoxelShapeBox INFINITE = of(AABB.INFINITE);
27+
public static final VoxelShapeBox INFINITE = of(AABBs.INFINITE);
2828
public static final VoxelShapeBox CENTERED = of(AABBs.CENTERED);
2929
public static final VoxelShapeBox CENTERED_X_PLANE = of(AABBs.CENTERED_X_PLANE);
3030
public static final VoxelShapeBox CENTERED_Y_PLANE = of(AABBs.CENTERED_Y_PLANE);

0 commit comments

Comments
 (0)