Package mindustry.game
Class Schematic
java.lang.Object
mindustry.game.Schematic
- All Implemented Interfaces:
Comparable<Schematic>
,Publishable
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSchematic
(Seq<Schematic.Stile> tiles, StringMap tags, int width, int height) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface mindustry.type.Publishable
extraTags, hasSteamID, prePublish
-
Field Details
-
tiles
-
labels
These are used for the schematic tag UI. -
tags
Internal meta tags. -
width
public int width -
height
public int height -
file
-
mod
Associated mod. If null, no mod is associated with this schematic.
-
-
Constructor Details
-
Schematic
-
-
Method Details
-
powerProduction
public float powerProduction() -
powerConsumption
public float powerConsumption() -
requirements
-
hasCore
public boolean hasCore() -
findCore
-
name
-
description
-
save
public void save() -
getSteamID
- Specified by:
getSteamID
in interfacePublishable
- Returns:
- workshop item ID, or null if this isn't on the workshop.
-
addSteamID
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 interfacePublishable
-
removeSteamID
public void removeSteamID()Description copied from interface:Publishable
removes the item ID; called when the item isn't found.- Specified by:
removeSteamID
in interfacePublishable
-
steamTitle
- Specified by:
steamTitle
in interfacePublishable
- Returns:
- default title of the listing.
-
steamDescription
- Specified by:
steamDescription
in interfacePublishable
- Returns:
- standard steam listing description, may be null. this is editable by users after release.
-
steamTag
- Specified by:
steamTag
in interfacePublishable
- Returns:
- the tag that this content has. e.g. 'schematic' or 'map'.
-
createSteamFolder
- Specified by:
createSteamFolder
in interfacePublishable
- Returns:
- a folder with everything needed for this piece of content in it; does not need to be a copy.
-
createSteamPreview
- Specified by:
createSteamPreview
in interfacePublishable
- Returns:
- a preview file PNG.
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Schematic>
-