r/GoldenAgeMinecraft • Developer • Aug 05 '26

Discussion The decay of the Java source code

The source code of the Java Edition is in decay. We can all experience it by looking at how unplayable modern versions are without performance mods.

But performance is not the only thing. Bad performance is a result of overengineered code.

When I was making mods for Indev and Infdev during the beginning of my career the codebase was very simple and well-structured. The main class contained a lot more than it ideally should, but it's the fate of all Java codebases and there is no running away from it.

A few weeks ago I was revisiting 1.11.2 Far Lands and I noticed that the code was now a bunch of Factories.

I haven't seen the latest source code (why would I?) but seeing the dramatic change I'd bet it's ridden with layers upon layers of abstraction, factories, and so on.

String IDs are a huge part of it. Old Minecraft used numeric IDs. Later, in 1.8 I believe, shortcuts were added, but they still just pointed to those numeric IDs.

In 1.13, everyone's least favourite version, the numeric IDs went away for the most part, replaced by stringId's which are by definition much slower.

Bad performance is a byproduct of "good code".

And, on a sidenote, the reason the LCE runs so well on such old hardware is partly because 4J didn't give a phick about good code.

In Java when they ran out of space in the texture atlas they removed it, implemented automatic atlas generation, and all that nonsense which only wastes CPU cycles and makes the thing slower.

4J just increased the size of the texture atlas. Yeah.

Old Minecraft had two classes. Iirc their names were Block and Item, and they stored the static instances of every single block and item in the game along with their IDs and such.

Modern Minecraft probably has registries instead of this. And yes, for mods it is a godsent, but not so for performance.

That's been some yapping about things most people don't care about, so sorry about that.

0 Upvotes

38 comments sorted by

View all comments

Show parent comments

5

u/gargamel1497 Developer Aug 05 '26

I'd bet they use AI and that's another reason why modern Minecraft is so slow.

Enjoy your shitty profession, vibe coder.

0

u/boringfantasy Aug 05 '26

I’m not a vibe coder lol. I review AI code and so do my colleagues. It’s not GPT 3.5 anymore, stop burying your head in the sand.

1

u/umotex12 Aug 05 '26

Yeah you can don’t like ai like me but saying it can’t be used to code in 2026 is just disinformation

1

u/TheRetroWorkshop Texture Pack Artist Aug 06 '26

I assume he means, 'it often makes bad code' or 'is an unstable way of making code', as opposed to, 'it's impossible for any A.I. to make any kind of code'. I mean, A.I. has been doing remarkable things since whenever Magnus used it for Chess and Microsoft switched their business goals (circa 2017). Almost 10 years. And since 2021 (more so, 2024), there have been major breakthroughs, and it's taken over almost every area of life. For example, 2025 was the biggest year for A.I. replacing human jobs/removing human workers. Millions still out of work, now. And this is only the beginning. WEF said at Davos 2023 or so that A.I. will 'take 25% of human jobs' -- but most experts have since claimed that this is shaping up to be closer to 50%.

No idea when modern 'work' was invented, but most people say with the British Empire's industrial revolution circa 1750. Before the U.S. even existed. 300 years will be lost, and utterly reshaped. And it's going to make the 1700s and 1800s look like a joke, so this is more important than indicated.

Hence, Klaus of WEF literally wrote a book called The Fourth Industrial Revolution.

It's not helped by the weird sub-set of people who actively want A.I. to replace humans more directly (i.e. a future without humans). In this case, it's the worst possible vision, and never existed before, in any system. Every system had humans, no matter what the system was -- every group wanted humans. This is the first time, we're not only seeing a shift unlike almost any other in the last 8,000 years, but we're seeing a faction on the side of the death of humanity. And that rather proves the point. Transhumanism to the point of total nihilism.

Now, I'm not saying they're going to win. I have hope. At least, I plan to fight against it, even if it's impossible for me to win: this is the Tolkienian form of bravery (though it may even be the modern British form, since it predates Tolkien, and is evidently nested within Catholicism) -- to fight on, even when you truly believe victory is impossible. This is Sam (if you've seen/read LOTR). (I can also assume that this pre-dates Catholics, or at least exists elsewhere in the world. It's just not supremely common.) But I digress.

Down with A.I.