Package mindustry.type
Interface Publishable
- All Known Implementing Classes:
Map
,Mods.LoadedMod
,Schematic
public interface Publishable
Defines a piece of content that can be published on the Workshop.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSteamID
(String id) adds a steam ID to this item once it's published.default boolean
default boolean
called before this item is published.void
removes the item ID; called when the item isn't found.steamTag()
-
Method Details
-
getSteamID
- Returns:
- workshop item ID, or null if this isn't on the workshop.
-
addSteamID
adds a steam ID to this item once it's published. should save the item to make sure this change is persisted. -
removeSteamID
void removeSteamID()removes the item ID; called when the item isn't found. -
steamTitle
String steamTitle()- Returns:
- default title of the listing.
-
steamDescription
- Returns:
- standard steam listing description, may be null. this is editable by users after release.
-
steamTag
String steamTag()- Returns:
- the tag that this content has. e.g. 'schematic' or 'map'.
-
createSteamFolder
- Returns:
- a folder with everything needed for this piece of content in it; does not need to be a copy.
-
createSteamPreview
- Returns:
- a preview file PNG.
-
extraTags
- Returns:
- any extra tags to add to this item.
-
hasSteamID
default boolean hasSteamID()- Returns:
- whether this item is or was once on the workshop.
-
prePublish
default boolean prePublish()called before this item is published.- Returns:
- true to signify that everything is cool and good, or false to significy that the user has done something wrong. if false is returned, make sure to show a dialog explaining the error.
-