title: JVM tries to load a class that isn't called
body: <p>I am writing code that adds functions to a 'mod' if it exists in the classpath (referenced by <code>pixelmonPresent</code>)</p>
  
  <pre><code>PixelHammerTool extends ItemHammer
  </code></pre>
  
  <p>, <code>ItemHammer</code> only exists if <code>pixelmon</code> is present</p>
  
  <p>The issue im having is, if i do this in the class (same package)</p>
  
  <pre><code>if(Basemod.pixelmonPresent) {
  rubyHammer = new PixelHammerTool(Basemod.RUBY, "pixelutilitys:RubyHammer", "rubyHammer");
  }
  </code></pre>
  
  <p>It will cause a class not found on <code>PixelHammerTool</code>,
  Why is this being called if the if statement is false and what can i do about it ?</p>