Partial 7.0 merge - API preview
This commit is contained in:
@@ -15,6 +15,9 @@ import static mindustry.Vars.*;
|
||||
|
||||
public class Schematic implements Publishable, Comparable<Schematic>{
|
||||
public final Seq<Stile> tiles;
|
||||
/** These are used for the schematic tag UI. */
|
||||
public Seq<String> labels = new Seq<>();
|
||||
/** Internal meta tags. */
|
||||
public StringMap tags;
|
||||
public int width, height;
|
||||
public @Nullable Fi file;
|
||||
@@ -29,7 +32,7 @@ public class Schematic implements Publishable, Comparable<Schematic>{
|
||||
}
|
||||
|
||||
public float powerProduction(){
|
||||
return tiles.sumf(s -> s.block instanceof PowerGenerator ? ((PowerGenerator)s.block).powerProduction : 0f);
|
||||
return tiles.sumf(s -> s.block instanceof PowerGenerator p ? p.powerProduction : 0f);
|
||||
}
|
||||
|
||||
public float powerConsumption(){
|
||||
|
||||
Reference in New Issue
Block a user