aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/github/technus/tectech/mechanics/structure/StructureUtility.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/github/technus/tectech/mechanics/structure/StructureUtility.java b/src/main/java/com/github/technus/tectech/mechanics/structure/StructureUtility.java
index 71eb2065e8..69f5a6e43c 100644
--- a/src/main/java/com/github/technus/tectech/mechanics/structure/StructureUtility.java
+++ b/src/main/java/com/github/technus/tectech/mechanics/structure/StructureUtility.java
@@ -15,8 +15,11 @@ import java.util.*;
public class StructureUtility {
private static final String NICE_CHARS ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`~!@#$%^&*()_=|[]{};:'<>,./?";
+ @SuppressWarnings("rawtypes")
private static final Map<Vec3Impl,IStructureNavigate> STEP = new HashMap<>();
+ @SuppressWarnings("rawtypes")
private static final IStructureElement AIR= (t, world, x, y, z) -> world.getBlock(x, y, z).getMaterial() == Material.air;
+ @SuppressWarnings("rawtypes")
private static final IStructureElement NOT_AIR= (t, world, x, y, z) -> world.getBlock(x, y, z).getMaterial() != Material.air;
private StructureUtility(){
@@ -182,6 +185,7 @@ public class StructureUtility {
};
}
+ @SuppressWarnings("unchecked")
public static <T> IStructureNavigate<T> step(Vec3Impl step){
if(step==null || step.get0()<0 || step.get1()<0 || step.get2()<0){
throw new IllegalArgumentException();