Package mindustry.core
Class FileTree
java.lang.Object
mindustry.core.FileTree
- All Implemented Interfaces:
- arc.assets.loaders.FileHandleResolver
Handles files in a modded context.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidclear()Clears all mod files.arc.files.FiGets an asset file.arc.files.FiGets an asset file.arc.audio.MusicLoads a music file by name from the music/ folder.arc.audio.SoundLoads a sound by name from the sounds/ folder.arc.files.Fi
- 
Constructor Details- 
FileTreepublic FileTree()
 
- 
- 
Method Details- 
addFile
- 
getGets an asset file.
- 
getGets an asset file.
- 
clearpublic void clear()Clears all mod files.
- 
resolve- Specified by:
- resolvein interface- arc.assets.loaders.FileHandleResolver
 
- 
loadSoundLoads a sound by name from the sounds/ folder. OGG and MP3 are supported; the extension is automatically added to the end of the file name. Results are cached; consecutive calls to this method with the same name will return the same sound instance.
- 
loadMusicLoads a music file by name from the music/ folder. OGG and MP3 are supported; the extension is automatically added to the end of the file name. Results are cached; consecutive calls to this method with the same name will return the same music instance.
 
-