Skip to content
Open
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,17 @@

public class BlockPattern {

static Direction[] FACINGS = { Direction.SOUTH, Direction.NORTH, Direction.WEST, Direction.EAST, Direction.UP,
protected static final Direction[] FACINGS = { Direction.SOUTH, Direction.NORTH, Direction.WEST, Direction.EAST,
Direction.UP,
Direction.DOWN };
static Direction[] FACINGS_H = { Direction.SOUTH, Direction.NORTH, Direction.WEST, Direction.EAST };
protected static final Direction[] FACINGS_H = { Direction.SOUTH, Direction.NORTH, Direction.WEST, Direction.EAST };
public final int[][] aisleRepetitions;
public final RelativeDirection[] structureDir;
protected final TraceabilityPredicate[][][] blockMatches; // [z][y][x]
public final TraceabilityPredicate[][][] blockMatches; // [z][y][x]
public final int[] centerOffset; // x, y, z, minZ, maxZ
protected final int fingerLength; // z size
protected final int thumbLength; // y size
protected final int palmLength; // x size
protected final int[] centerOffset; // x, y, z, minZ, maxZ
@Getter
protected int[] formedRepetitionCount;

Expand Down Expand Up @@ -517,7 +518,7 @@ public BlockInfo[][][] getPreview(int[] repetition) {
return result;
}

private void resetFacing(BlockPos pos, BlockState blockState, Direction facing,
protected void resetFacing(BlockPos pos, BlockState blockState, Direction facing,
BiPredicate<BlockPos, Direction> checker, Consumer<BlockState> consumer) {
if (blockState.hasProperty(BlockStateProperties.FACING)) {
tryFacings(blockState, pos, checker, consumer, BlockStateProperties.FACING,
Expand All @@ -544,8 +545,8 @@ private void tryFacings(BlockState blockState, BlockPos pos, BiPredicate<BlockPo
consumer.accept(blockState.setValue(property, found));
}

private BlockPos setActualRelativeOffset(int x, int y, int z, Direction facing, Direction upwardsFacing,
boolean isFlipped) {
protected BlockPos setActualRelativeOffset(int x, int y, int z, Direction facing, Direction upwardsFacing,
boolean isFlipped) {
int[] c0 = new int[] { x, y, z }, c1 = new int[3];
if (facing == Direction.UP || facing == Direction.DOWN) {
Direction of = facing == Direction.DOWN ? upwardsFacing : upwardsFacing.getOpposite();
Expand Down
Loading