I need to know how to get a mob ID/name from any given entity. For instance, if Mod A adds a Beetle mob, I'd like to be able to know that the mob is a beetle from mod A, and if Mod B adds a Beetle mob I'd like to be able to know it's from Mod B, despite sharing a display name from Mod A.
How would I go about doing this programatically? Couldn't find any info online, and Entity.getName() only tells me the mob's display name and not where it came from. Something like "moda.mobname" is