How to allocate more ram in Minecraft source code
<p>I'm using <a href="http://www.modcoderpack.com/website/" rel="nofollow">MCP</a> with eclipse to decompile Minecraft.  I'd like to increase the amount of ram allocated to the game, but I am not sure how.</p>

<p>I've noticed that there is a file called <code>Minecraft.java</code> in MCP (<code>net.minecraft.client.Minecraft</code>), and I believe that I can edit that file to increase the amount of allocated ram.  I'm sure there's some obvious variable I need to change, but I wanna be sure so I don't break my client.</p>

<p>In <code>Minecraft.java</code>, the following array is declared:</p>

<pre><code>/** A 10MiB preallocation to ensure the heap is reasonably sized. */
public static byte[] memoryReserve = new byte[10485760];
</code></pre>

<p>Would editing that array let me allocate more memory for general use in the game?  If not, what should I edit to increase the amount of ram (and what is the purpose of that array)?</p>

<p>I can't edit the amount of ram using the launcher because I'm running the game directly from MCP - <strong>THERE IS NO LAUNCHER</strong> at this point.  I want to increase the amount of ram in my development environment; while the launcher can be used to increase the amount of ram normally it does not help with within eclipse, where the launcher is skipped.</p>