public HotbarRow this[int i] { get { if (!rows.ContainsKey(i)) { rows[i] = new HotbarRow(); } return(rows[i]); } set { rows[i] = value; } }
public string GetHotbarSlotKeyMap(int hnum, int snum, int jnum) { if (hotbarData.rows.ContainsKey(hnum)) { HotbarRow row = hotbarData[hnum]; if (row.slots.ContainsKey(snum)) { HotbarSlot slot = row[snum][jnum]; return(slot.ToString()); } } return(null); }