Skip to content

Commit 5efd95b

Browse files
committed
I have altered the API, pray I do not alter it further
1 parent 0857919 commit 5efd95b

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

src/main/java/com/gtnewhorizon/structurelib/alignment/constructable/IDeconstructable.java

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,20 @@
33
import com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing;
44
import com.gtnewhorizon.structurelib.structure.IStructureDefinition;
55
import 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
}

0 commit comments

Comments
 (0)