Posted February 17, 201411 yr Hi. Apologies in advance if I've missed the answer elsewhere (I have checked but could definitely have overlooked something). I'm trying to set up Forge to mod Minecraft as a way of teaching some school kids Java programming. Some basic intro stuff first: I'm running on a Mac with JDK 1.7 installed and using Eclipse (Kepler). Since the kids are already using 1.7.x of Minecraft I've been following the instructions on http://www.minecraftforge.net/wiki/Installation/Source and downloading from http://files.minecraftforge.net (downloaded forge-1.7.2-10.12.0.1029-src). As it says on the wiki, I then issued: ./gradlew setupDecompWorkspace --refresh-dependencies ./gradelw eclipse Everything fine so far. However, when opening the Eclipse project and the example, there's an error (Blocks.dirt.func_149739_a() is not defined in any jars that Eclipse can find). Maybe that points at the root cause of my main issue (see below), but for now I just changed that to one of the methods that is present. Then I moved on to http://www.minecraftforge.net/wiki/Basic_Modding and followed the instructions there for creating the Generic class. Unfortunately Eclipse can't find the NetworkMod annotation (cpw.mods.fml.common.network.NetworkMod). I looked through all of the jars, class files and source within the installation directory and the .gradle cache, but couldn't find NetworkMod anywhere. The closest class in name is NetworkModHolder. I could find various other annotations but not NetworkMod. A google search (and search of these forums) didn't show up anything either. I suspect I've done something wrong, but at this point I don't know what so would be grateful if someone could put me back on the right track. Thanks in advance!
February 17, 201411 yr func_149739_a() is now getUnlocalizedName() And thanks for the solution, i was looking for a replacement for @networkmod. i didn't know it is not needed anymore. Thank you
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.