Package dev.architectury.loom.metadata
Interface JsonBackedModMetadataFile
- All Superinterfaces:
ModMetadataFile
- All Known Implementing Classes:
ArchitecturyCommonJson,QuiltModJson
A mod metadata file backed by a JSON object.
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable com.google.gson.JsonElementgetCustomValue(String key) Gets a custom value from this mod metadata file.com.google.gson.JsonObjectgetJson()Returns the backing JSON object of this mod metadata file.Methods inherited from interface dev.architectury.loom.metadata.ModMetadataFile
getAccessTransformers, getAccessWideners, getFileName, getId, getIds, getInjectedInterfaces, getMixinConfigs
-
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
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
nullif not found
-