completed previous check-in, for #1650

This commit is contained in:
SpaceToad 2014-04-30 20:36:57 +02:00
parent c657fee0a1
commit 5353198eaa
2 changed files with 13 additions and 0 deletions

View file

@ -230,4 +230,13 @@ public abstract class Schematic {
return stackConsumed;
}
/**
* Return true if this schematic is standalone, false if it needs other
* blocks to be build on. Typically, solid blocks are standalone, others
* are not. All standalone blocks are supposed to be built first.
*/
public boolean isStandalone () {
return true;
}
}

View file

@ -162,4 +162,8 @@ public class SchematicBlock extends SchematicBlockBase implements Comparable<Sc
public int compareTo(SchematicBlock o) {
return 0;
}
public boolean isStandalone () {
return block.isOpaqueCube();
}
}