File tree Expand file tree Collapse file tree
src/main/java/com/gtnewhorizon/structurelib/alignment/constructable Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import com .gtnewhorizon .structurelib .alignment .enumerable .ExtendedFacing ;
44import com .gtnewhorizon .structurelib .structure .IStructureDefinition ;
55import com .gtnewhorizon .structurelib .util .Vec3Impl ;
6+ import org .apache .commons .lang3 .tuple .Pair ;
67
7- public interface IDeconstructable {
8+ public interface IDeconstructable < T > {
89 /**
910 *
10- * @return the active structure definition in use
11+ * @return The structure definition of the multiblock
1112 */
12- IStructureDefinition <?> getActiveStructure ();
13+ IStructureDefinition <T > getStructureDefinition ();
14+
15+ /**
16+ *
17+ * @return an array of active pieces and the corresponding offset of those pieces
18+ */
19+ Pair <String , Vec3Impl >[] getActivePieces ();
1320
1421 /**
1522 *
@@ -19,7 +26,7 @@ public interface IDeconstructable {
1926
2027 /**
2128 *
22- * @return the structure offset (A, B, C) used to calculate the position to start scanning at
29+ * @return the parameterized class
2330 */
24- Vec3Impl getStructureOffset ();
31+ Class < T > getType ();
2532}
You can’t perform that action at this time.
0 commit comments