Package mindustry.mod
Class DataManager
java.lang.Object
mindustry.mod.DataManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidarc.struct.Seq<DataAsset>arc.struct.Seq<DataAsset><T extends DataAsset>
arc.struct.Seq<T>getAssets(DataAssetType type) getAudioName(arc.files.Fi file) arc.struct.Seq<BundleAsset>arc.struct.Seq<ContentAsset>arc.struct.Seq<ImageAsset>arc.struct.Seq<DataAsset>arc.struct.Seq<MusicAsset>getMusic()arc.struct.Seq<PatchAsset>arc.struct.Seq<SoundAsset>booleanhasAssetName(DataAssetType type, String name) booleanhasAssetNameOrPath(DataAssetType type, String name, String path) booleanhasAssetPath(DataAssetType type, String path) booleanbooleanvoidvoidregenerateContentSprites(boolean forcePack) voidvoidreloadContent(boolean reloadArrays) voidvoidreloadImages(arc.struct.Seq<ImageAsset> images) voidreloadPatches(arc.struct.Seq<PatchAsset> patches) voidunload()
-
Constructor Details
-
DataManager
public DataManager()
-
-
Method Details
-
getAudioName
-
reloadContent
public void reloadContent(boolean reloadArrays) -
regenerateContentSprites
public void regenerateContentSprites(boolean forcePack) -
reloadPatches
-
reloadImages
public void reloadImages() -
reloadImages
-
reloadAudio
public void reloadAudio() -
load
-
unload
public void unload() -
getMissingAssets
- Returns:
- broken assets with no cache file
-
getAllAssets
-
hasAssetPath
-
hasAssetName
-
hasAssetNameOrPath
-
hasExternalAssets
public boolean hasExternalAssets()- Returns:
- whether any assets like audio/images (external to saves) are loaded, requiring separate network transmission.
-
getAllExternalAssets
- Returns:
- all assets that can be external to a save (for network sync)
-
isPatched
-
getAssets
-
clearGeneratedImages
public void clearGeneratedImages() -
getImages
-
getPatches
-
getMusic
-
getSounds
-
getBundles
-
getContent
-