Package mindustry.mod

Class ContentParser

java.lang.Object
mindustry.mod.ContentParser

public class ContentParser extends Object
  • 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 extension
      json - the json to parse
      type - the type of content this is
      file - file that this content is being parsed from
      Returns:
      the content that was parsed
      Throws:
      Exception
    • markError

      public void markError(Content content, Mods.LoadedMod mod, Fi file, Throwable error)
    • markError

      public void markError(Content content, Throwable error)