using System; namespace StardewModdingAPI { /// Encapsulates access and changes to content being read from a data file. public interface IContentEventHelper : IContentEventData { /********* ** Public methods *********/ /// Get a helper to manipulate the data as a dictionary. /// The expected dictionary key. /// The expected dictionary balue. /// The content being read isn't a dictionary. IContentEventHelperForDictionary AsDictionary(); /// Get a helper to manipulate the data as an image. /// The content being read isn't an image. IContentEventHelperForImage AsImage(); /// Get the data as a given type. /// The expected data type. /// The data can't be converted to . TData GetData(); } }