public static ModDust GetDust(int type) { return type >= DustID.Count && type < DustCount ? dusts[type - DustID.Count] : null; }
/// <summary> /// Gets the ModDust instance with the given type. Returns null if no ModDust with the given type exists. /// </summary> public static ModDust GetModDust(int type) => ModDust.GetDust(type);