Browsercraft makes unmodified Minecraft run in the browser using CheerpJ, a Java runtime for modern browsers.

Source code: github.com/leaningtech/browsercraft