Since 1.13, we've had the Mob interface injected between Creature and LivingEntity, and it contains the targeting methods we use. Slimes were never Creatures, but they _are_ Mobs, so by swapping this interface out, we effectively patch up functionality that's been broken since the very beginning. Hopefully server owners don't actually depend on this piece of functionality being broken...