You should setup the decompile environment if you plan on using Eclipse:
gradlew setupDecompWorkspaceto build the deobfuscation environment for the first time.gradlew eclipse [--refresh-dependencies]to build Eclipse project files.
The build tasks and gradle setup has been configured to operate out of the box, but requires some user-end setup before it will work properly.
- Import the project directory into your Eclipse workspace.
- By default, you should already have
/src/main/javaset as a Source folder; if not, add it. - Add
/src/externs/javaand/src/main/resourcesas Source folders if they are not Source folders. - You may need to add libraries and set the LWJGL natives folder (
/build/natives; perform step 13 if you don't have this directory already). - Create the
/runtimeand the/server_runtimefolder, case sensitive. - Create a new Debug profile, give it any name.
- Select the Target Project as the LanteaCraft root source.
- When launching as a client use
GradleStartas the Main. - Tell Forge to use 1.7 by setting the Program Arguments to
--version 1.7 --tweakClass cpw.mods.fml.common.launcher.FMLTweaker. - Tell Forge to ignore any invalid chain certificates by adding
-Dfml.ignoreInvalidMinecraftCertificates=trueto the VM arguments. - You must add
-Dfml.coreMods.load=pcl.lc.coremod.LCCoreModto the VM arguments of your configuration. Forge will not detect coremods which are not in jar format, even if they exist in /bin. - Set the Working Directory to the
/runtimefolder. - If you need to specify a JDT Launcher, select one, then press Apply.
- If you require a specific username for your test, you should set the
--username=parameter in Program Arguments. - When testing on servers without logging in, you should manually set the
--uuid=parameter to match a UUID. - If you find you have no
/build/nativesdirectory after performing a build or jar task, usegradle[w] eclipse --refresh-dependencies. - If you intend to run the
gradle[w] jartask, you need to setJAVA_HOMEandBUILD_NUMBER. **BUILD_NUMBERis usually set by Jenkins and will default to0in gradle tasks if not set in the environment (see http://lanteacraft.com/jenkins/env-vars.html).