Package mindustry.mod
Class ContentParser
java.lang.Object
mindustry.mod.ContentParser
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
markError
(Content content, Mods.LoadedMod mod, Fi file, Throwable error) parse
(Mods.LoadedMod mod, String name, String json, Fi file, ContentType type) Parses content from a json file.
-
Constructor Details
-
ContentParser
public ContentParser()
-
-
Method Details
-
finishParsing
public void finishParsing() -
parse
public Content parse(Mods.LoadedMod mod, String name, String json, Fi file, ContentType type) throws Exception Parses content from a json file.- Parameters:
name
- the name of the file without its extensionjson
- the json to parsetype
- the type of content this isfile
- file that this content is being parsed from- Returns:
- the content that was parsed
- Throws:
Exception
-
markError
-
markError
-