Interface JsonBackedModMetadataFile

All Superinterfaces:
ModMetadataFile
All Known Implementing Classes:
ArchitecturyCommonJson, QuiltModJson

public interface JsonBackedModMetadataFile extends ModMetadataFile
A mod metadata file backed by a JSON object.
  • Method Details

    • getJson

      com.google.gson.JsonObject getJson()
      Returns the backing JSON object of this mod metadata file..
      Returns:
      the backing JSON object of this mod metadata file
    • getCustomValue

      default @Nullable com.google.gson.JsonElement getCustomValue(String key)
      Gets a custom value from this mod metadata file.

      If the format doesn't support custom values, returns null.

      Parameters:
      key - the key of the custom value
      Returns:
      the custom value, or null if not found