Skip to content

Commit a9c41cc

Browse files
committed
Widen visibility of fields and methods in ShapeMatcher
1 parent ecf7cac commit a9c41cc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/main/java/aztech/modern_industrialization/machines/multiblocks/ShapeMatcher.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ public ShapeMatcher(Level world, BlockPos controllerPos, Direction controllerDir
4747
this.hatchFlags = toWorldPos(controllerPos, controllerDirection, template.hatchFlags);
4848
}
4949

50-
private final BlockPos controllerPos;
51-
private final ShapeTemplate template;
52-
private final Map<BlockPos, SimpleMember> simpleMembers;
53-
private final Map<BlockPos, HatchFlags> hatchFlags;
50+
protected final BlockPos controllerPos;
51+
protected final ShapeTemplate template;
52+
protected final Map<BlockPos, SimpleMember> simpleMembers;
53+
protected final Map<BlockPos, HatchFlags> hatchFlags;
5454

55-
private boolean needsRematch = true;
56-
private boolean matchSuccessful = false;
57-
private final List<HatchBlockEntity> matchedHatches = new ArrayList<>();
55+
protected boolean needsRematch = true;
56+
protected boolean matchSuccessful = false;
57+
protected final List<HatchBlockEntity> matchedHatches = new ArrayList<>();
5858

5959
/**
6060
* Convert a relative position in the shape template to the real position in the
@@ -73,7 +73,7 @@ else if (controllerDirection == EAST)
7373
return rotatedPos.offset(controllerPos);
7474
}
7575

76-
private static <V> Map<BlockPos, V> toWorldPos(BlockPos controllerPos, Direction controllerDirection, Map<BlockPos, V> templateMap) {
76+
protected static <V> Map<BlockPos, V> toWorldPos(BlockPos controllerPos, Direction controllerDirection, Map<BlockPos, V> templateMap) {
7777
Map<BlockPos, V> result = new HashMap<>();
7878
for (Map.Entry<BlockPos, V> entry : templateMap.entrySet()) {
7979
result.put(toWorldPos(controllerPos, controllerDirection, entry.getKey()), entry.getValue());

0 commit comments

Comments
 (0)