Class Schematic

java.lang.Object
mindustry.game.Schematic
All Implemented Interfaces:
Comparable<Schematic>, Publishable

public class Schematic extends Object implements Publishable, Comparable<Schematic>
  • Field Details

    • tiles

      public final Seq<Schematic.Stile> tiles
    • labels

      public Seq<String> labels
      These are used for the schematic tag UI.
    • tags

      public StringMap tags
      Internal meta tags.
    • width

      public int width
    • height

      public int height
    • file

      @Nullable public Fi file
    • mod

      Associated mod. If null, no mod is associated with this schematic.
  • Constructor Details

  • Method Details

    • powerProduction

      public float powerProduction()
    • powerConsumption

      public float powerConsumption()
    • requirements

      public ItemSeq requirements()
    • hasCore

      public boolean hasCore()
    • findCore

      public CoreBlock findCore()
    • name

      public String name()
    • description

      public String description()
    • save

      public void save()
    • getSteamID

      public String getSteamID()
      Specified by:
      getSteamID in interface Publishable
      Returns:
      workshop item ID, or null if this isn't on the workshop.
    • addSteamID

      public void addSteamID(String id)
      Description copied from interface: Publishable
      adds a steam ID to this item once it's published. should save the item to make sure this change is persisted.
      Specified by:
      addSteamID in interface Publishable
    • removeSteamID

      public void removeSteamID()
      Description copied from interface: Publishable
      removes the item ID; called when the item isn't found.
      Specified by:
      removeSteamID in interface Publishable
    • steamTitle

      public String steamTitle()
      Specified by:
      steamTitle in interface Publishable
      Returns:
      default title of the listing.
    • steamDescription

      public String steamDescription()
      Specified by:
      steamDescription in interface Publishable
      Returns:
      standard steam listing description, may be null. this is editable by users after release.
    • steamTag

      public String steamTag()
      Specified by:
      steamTag in interface Publishable
      Returns:
      the tag that this content has. e.g. 'schematic' or 'map'.
    • createSteamFolder

      public Fi createSteamFolder(String id)
      Specified by:
      createSteamFolder in interface Publishable
      Returns:
      a folder with everything needed for this piece of content in it; does not need to be a copy.
    • createSteamPreview

      public Fi createSteamPreview(String id)
      Specified by:
      createSteamPreview in interface Publishable
      Returns:
      a preview file PNG.
    • compareTo

      public int compareTo(Schematic schematic)
      Specified by:
      compareTo in interface Comparable<Schematic>