The Minecraft forester script ported to Java
-
Open your MCP workspace (Beta 1.7.3 was used in this but other versions might work too.)
-
Open the Client project properties (Client > Right Click > Properties)
-
Go to Java Build Path > Source
-
Click on Link Source > Browse
-
Select the
sourcesfolder from the repository you cloned -
Click Next > Finish
-
Open net.minecraft.src.World and add
forester.MCWorldAccessorinterface to the list of implementations -
Then you should be able to call the generateTree method from Tree.java
-
to be able to reobf with these classes you would need to copy the contents of sources/ to src/minecraft/
See example.java for details on basic instructions how to use the code