*
* @param entity to find
* @param speed to move with
*/
public void moveTo(Entity entity, double speed) {
EntityLiving nmsEntity = CommonNMS.getNative(this.entity);
net.minecraft.server.Entity nmsTargetEntity = CommonNMS.getNative(entity);
if(nmsEntity instanceof EntityInsentient) {
Navigation navigation = (Navigation) EntityLivingRef.getNavigation.invoke(nmsEntity);
if(!navigation.a(nmsTargetEntity, speed)) {
PathEntity path = nmsEntity.world.findPath(nmsEntity, nmsTargetEntity, (float) this.getPathfindingRange(), true, false, false, true);