Ok, so I did find this method called getNearbyEntities and started playing around with it, but I'm having trouble figuring out what to put in the place of some of these parameters
getNearbyEntities(Class<? extends T> p_217374_1_, EntityPredicate p_217374_2_, LivingEntity p_217374_3_, AxisAlignedBB p_217374_4_)
I had already gotten that AxisAlignedBB is just the bounding box aka the radius to check and I just assume EntityPredicate could just be the default, but the other two I'm unsure about if anyone could explain?