Method TryGetDefinitionComponents
TryGetDefinitionComponents(string, out Dictionary<string, object>)
Full component data of a definition — the cold half of the split (D5). A mod definition carries it from the hot pass; for base content the mirror file of that kind is read on first use and cached, so a headless session that never bakes anything never pays for the 3 MB item mirror. Pending patch ops are overlaid on a fresh copy on every call, so materialisation always sees the merged result and the cached source data stays untouched.
The boot pipeline now calls LoadAllBaseMirrors so the "first use" in that sentence is normally the content stage rather than whatever gameplay got there first. The lazy path below stays because it is also the correctness guarantee: whatever the eager pass missed is still read on demand.
public static bool TryGetDefinitionComponents(string id, out Dictionary<string, object> components)
Parameters
idstringcomponentsDictionary<string, object>