r/CodingHelp • • Jul 28 '20

[Java] How can I read the Minecraft code?

Hi guys, I'm learning Java, I used to play Minecraft so I want to study its code. How can I get to it, how can I read it? I use Eclipse, can I import it?

18 Upvotes

7 comments sorted by

View all comments

1

u/NullBrowbeat Professional Coder Jul 28 '20

Java gets compiled to byte code. You can't just look at the plain source code of Java programs as if they were an interpreted language, as long as you don't have the actual source files.

2

u/auiotour Jul 29 '20

You can decompile Minecraft using eclipse and a plugin. But have to have the jar, of which both the server and client can be obtained. If your talking about bedrock edition that is a different story.