title: How do I edit Minecraft Mod Class files?
body: <p>I'm trying to edit a single line in Pam's Harvestcraft mod. The reason is that in the game these "gardens" inside the mod spawn too often. There is a config file for this mod, however the lowest possible value for rarity = 1 is still too high. This rarity is an int, and I want to change it to a float inside this Mod's jar's .class file, so that I may be able to use 0.5 or something less than 1 to decrease the chance of these gardens spawning.</p>
  
  <p>I copy and pasted the .class file into intelliJ, but it is readable only. Writing my own text file and changing the extension to .class obviously corrupts the file. </p>
  
  <p>For the past hour I've been trying to Google the answer. People say that you might need to set up a modding environment, decompile the code, then recompile it after the changes. This seems very long-winded for a simple line of code editing.</p>
  
  <p>Edit: I haven't figured it out yet. Something to add: I downloaded this class file editor <a href="http://dirty-joe.com/" rel="nofollow noreferrer">http://dirty-joe.com/</a>
  It let's me edit the field with the int to float. However there are 2 problems with this;</p>
  
  <p>1, I also need to edit a method that getInt() to getFloat() which I cannot do.</p>
  
  <p>2, When I save the newly edited class file, then try to reopen it using this JOE editor IT IS GIVING ME A FILE ERROR. This indicated to me that if I edit the class file it corrupts it anyways. </p>