public RobitAIFollow(EntityRobit entityRobit, float speed, float min, float max) { theRobit = entityRobit; theWorld = entityRobit.worldObj; moveSpeed = speed; thePathfinder = entityRobit.getNavigator(); minDist = min; maxDist = max; setMutexBits(3); }
@Override public void resetTask() { theOwner = null; thePathfinder.clearPathEntity(); theRobit.getNavigator().setAvoidsWater(avoidWater); }
@Override public void startExecuting() { ticker = 0; avoidWater = theRobit.getNavigator().getAvoidsWater(); theRobit.getNavigator().setAvoidsWater(false); }