internal static SoundEffectInstance[] GetSoundInstanceArray(SoundType type) { switch (type) { case SoundType.Custom: return customSoundInstances; case SoundType.Item: return Main.soundInstanceItem; case SoundType.NPCHit: return Main.soundInstanceNPCHit; case SoundType.NPCKilled: return Main.soundInstanceNPCKilled; } return null; }