diff --git a/src/main/java/com/simibubi/create/AllShapes.java b/src/main/java/com/simibubi/create/AllShapes.java index 6ffb1c167..97e80c7e6 100644 --- a/src/main/java/com/simibubi/create/AllShapes.java +++ b/src/main/java/com/simibubi/create/AllShapes.java @@ -232,57 +232,57 @@ public class AllShapes { return Block.makeCuboidShape(x1, y1, z1, x2, y2, z2); } - private static class Builder { + public static class Builder { VoxelShape shape; public Builder(VoxelShape shape) { this.shape = shape; } - Builder add(VoxelShape shape) { + public Builder add(VoxelShape shape) { this.shape = VoxelShapes.or(this.shape, shape); return this; } - Builder add(double x1, double y1, double z1, double x2, double y2, double z2) { + public Builder add(double x1, double y1, double z1, double x2, double y2, double z2) { return add(cuboid(x1, y1, z1, x2, y2, z2)); } - Builder erase(double x1, double y1, double z1, double x2, double y2, double z2) { + public Builder erase(double x1, double y1, double z1, double x2, double y2, double z2) { this.shape = VoxelShapes.combineAndSimplify(shape, cuboid(x1, y1, z1, x2, y2, z2), IBooleanFunction.ONLY_FIRST); return this; } - VoxelShape build() { + public VoxelShape build() { return shape; } - VoxelShaper build(BiFunction factory, Direction direction) { + public VoxelShaper build(BiFunction factory, Direction direction) { return factory.apply(shape, direction); } - VoxelShaper build(BiFunction factory, Axis axis) { + public VoxelShaper build(BiFunction factory, Axis axis) { return factory.apply(shape, axis); } - VoxelShaper forDirectional(Direction direction) { + public VoxelShaper forDirectional(Direction direction) { return build(VoxelShaper::forDirectional, direction); } - VoxelShaper forAxis() { + public VoxelShaper forAxis() { return build(VoxelShaper::forAxis, Axis.Y); } - VoxelShaper forHorizontalAxis() { + public VoxelShaper forHorizontalAxis() { return build(VoxelShaper::forHorizontalAxis, Axis.Z); } - VoxelShaper forHorizontal(Direction direction) { + public VoxelShaper forHorizontal(Direction direction) { return build(VoxelShaper::forHorizontal, direction); } - VoxelShaper forDirectional() { + public VoxelShaper forDirectional() { return forDirectional(UP); }