You should setup the decompile environment if you plan on using Eclipse:
gradlew setupDecompWorkspace
to 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/java
set as a Source folder; if not, add it. - Add
/src/externs/java
and/src/main/resources
as 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
/runtime
and the/server_runtime
folder, 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
GradleStart
as 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=true
to the VM arguments. - You must add
-Dfml.coreMods.load=pcl.lc.coremod.LCCoreMod
to 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
/runtime
folder. - 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/natives
directory after performing a build or jar task, usegradle[w] eclipse --refresh-dependencies
. - If you intend to run the
gradle[w] jar
task, you need to setJAVA_HOME
andBUILD_NUMBER
. **BUILD_NUMBER
is usually set by Jenkins and will default to0
in gradle tasks if not set in the environment (see http://lanteacraft.com/jenkins/env-vars.html).