I can easily detect collisions with other entities in my custom entities, but I'm trying to detect them in vanilla entities. Since there's no EntityCollision event, I've heard of people polling for collisions via player update events or entityLiving update events, but so far I'm not seeing how I'd go about grabbing that info. I have a pretty decent understanding of Java and the Minecraft API, so I don't need a lot of details on how to code it; I just need someone to point me in the right direction. I'm looking for entity/entity collisions and entity/player collisions.
By the way, I'd like to make this work with both 1.7 and 1.12. Would it require similar or different techniques for each version?
Thanks in advance!