@@ -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