using System.Runtime.CompilerServices; using StardewValley.Objects; namespace ConvenientChests.CategorizeChests.Framework { class ChestDataManager : IChestDataManager { private readonly ConditionalWeakTable _table = new ConditionalWeakTable(); public ChestData GetChestData(Chest chest) => _table.GetValue(chest, c => new ChestData(c)); } }