Does this Bedrock gold farm design also work in Java Edition?

I have built it (I don't want to use glitches in my game) and yes it works, but not as shown.

You can't light up a portal with that lava setup, so you're stuck with piglins spawning naturally in the portal.

A zombie piglin will spawn on top of an obsidian block at the bottom of the portal frame if any of the portal blocks on that vertial received a random tick.

So, taller portals = higher chances of a piglin spawning, and larger portals = more chances of spawn.

Also, more portals = more chances.

Here is my setup: enter image description here

I have 17 portals that are 23x23 plus another 14 that are 23x16. They are gathering around a turtle egg I placed on top of a 2 high column of obsidian so that they would get close to my enraging platform, from where I throw an egg at them (and then I move to a killing pit).

This gives me a barely acceptable stream of 1 or 2 piglins per second. I stupidly started this project underground, under my iron farm, so I can't easily expand it, but if you want, you could theoretically build more portals directly above so that you could increase your piglin spawning rate.

Expanded it can look like this:

Another possible layout is such:

And if you feel like bringing it to an extreme: