title: libGDX Add custom method to SpriteBatch
body: <p>I am trying to add my own custom draw() function to the SpriteBatch class in libGDX, but the SpriteBatch class is compiled in a jar file. </p>
  
  <p>I had attempted to make my own class that extends the SpriteBatch class, but I need to access the private variables that can only be accessed in the class itself...</p>
  
  <p>I would assume that I need to download the libGDX source, modify what I need to, and recompile, but i'm having a bit of trouble following <a href="https://github.com/libgdx/libgdx/wiki/Building-libgdx-from-source" rel="nofollow noreferrer">this tutorial</a> and <a href="https://stackoverflow.com/questions/25270377/how-to-build-libgdx-from-source">this question</a>, in addition to installing Ant on my mac following this method (Mac early-2011).</p>
  
  <p>How should I go about modifying and applying new source code?</p>