Jump to content

Recommended Posts

Posted

So just got  round to updating my mod to 1.7 and was met by a wave of 300+ errors (fairly typical), however some of them (including this one) I can't figure out. I'm sure some will become more obvious as I get more used to the 1.7 environment but I can't see an obvious replacement for this, also not aided by the fact that there no longer appears to be an equivalent method for what was

	NetworkRegistry.instance().registerConnectionHandler(new MTechNetworkHandler());

 

The class which I can't figure out how to replace

 

Anybody got any ideas? the rest of my working 1.6 code is all in this repository

 

Thanks in advance

 

~Yagoki

 

P.S. am I the only one finding it frustrating that we can't poke around in the src with the gradlew updates like we could with mcp?

Posted

For the IConnectionHandler, i never used one. But for the source, Go to Referenced Libraries/forgeSrc-[YOUR_FORGE_VERSION] and in there are all the packages.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted

Hmmm... don't see anything saying "referenced libraries" nor can I find any file labelled forgeSrc in my eclipse environment.

Getting really tempted to stick with 1.6 but I know I should probably update before I get left too far behind.

 

[EDIT]

 

OK, found it. Was confused for a bit, mostly because I was expecting to find them all in the folder I created for the dev environment, never thought to check if gradle created a new place to keep the things. If anyone else is looking they will be in a folder similar to the location of the .jar you want the src for. then to apply in eclipse:

 

right click on the project-->properties-->Java Build Path-->Libraries-->click on the library you wish to add src to-->click "source attachment"-->Edit-->External Location (you then need to establish if it's an arhivee.g. .jar/.zip/.rar/... or a file system) click the required on then navigate to the file

Posted

I think your decompile has failed, so the minecraft src is not exist...

You should redo the decompile.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Posted

No, the class files exist, just in the same way that they exist for the LWJGL files. I can use them, but I can't jump to lines of the code. Mostly just that the Source attachment is missing for only the minecraft files, it exists for the forge files. Re-running the setup  was one of the first things I tried as I still don't trust gradle

Posted

Didn't know that was a thing, but just tried that and got an error

 

It says to check that I have the JDK installed (which I know I do. been programming with java for a few years now so lack of JDK is not the issue), i'll go check that that's all up to date then report back.

Posted

OK, updated to Java 8 from Java 7  (JDK 1.8.0_05 was previously JDK 1.7.something) and it seems to have worked, guessing it fixed a path or something :D

Thanks for pointing out the setupDecompWorkspace command, that wasn't obvious and i don't think it was mentioned in the thing Lex did to show how to use the gradle setup

 

Thanks :D

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.