public static BlockModel ReadBlockModel(string path) { if (!Exists(path)) { Logger.Error($"Block model \"{path}\" could not be found!"); return(ClientResources.MissingModel); } if (_cachedModels.TryGetValue(path, out var model)) { return(model); } model = BlockModel.Parse(ReadString(path), path); _cachedModels.Add(path, model); return(model); }