An example of running LWJGL3 alongside LWJGL2 in Minecraft.

Overview

LWJGLTwoPointFive

An example of running LWJGL3 alongside LWJGL2 in Minecraft.

IMPORTANT: This does NOT make minecraft use LWJGL3 for rendering, it simply allows using LWJGL3 bindings alongside LWJGL2

How it works

Excluding opengl classes, the only classes the conflicts between lwjgl2 and 3 are org.lwjgl.BufferUtils and org.lwjgl.PointerBuffer. Thankfully, those classes have no native methods so simply relocating them just works. After that, most things work. LWJGL2 jars are Sealed, however simply removing org.lwjgl. from transformer exclusions gets around this and lets you transform lwjgl classes (which is needed in some cases). In the case of nanovg bindings, NanoVGGLConfig needs to be able to fetch function pointers so a transformer and custom FunctionProvider is needed.

TODO:

  • gradle plugin/task to merge and relocate sources
  • test out more bindings
You might also like...

Minecraft Utility Mod for the latest release of Minecraft developed by Cypphi.

Minecraft Utility Mod for the latest release of Minecraft developed by Cypphi.

Minecraft Utility Mod for the latest release of Minecraft developed by Cypphi.

Jan 1, 2023

Play snake, in minecraft. This is a crude, horibly made snake in minecraft game. Requires PaperMC 1.18.2.

MinecraftSnake Play snake, in minecraft. This is a crude, horibly made snake in minecraft game. Requires PaperMC 1.18.2. Installation: Create a paperm

Sep 30, 2022

The Minecraft Mod API

Bukkit A Minecraft Server API. Website: http://bukkit.org Bugs/Suggestions: http://leaky.bukkit.org Contributing Guidelines: CONTRIBUTING.md Compilati

Dec 31, 2022

Modifications to the Minecraft base files to assist in compatibility between mods.

MinecraftForge Forge is a free, open-source modding API all of your favourite mods use! Version Support 1.16.x Active 1.15.x LTS Download Forum Discor

Jan 3, 2023

Equivalent Exchange 3 Apache 2 Equivalent Exchange 3 pahimar Equivalent-Exchange-3. Mods for Minecraft. License: Apache 2 , .

Welcome to Equivalent Exchange 3! All versions are available here Minecraft Forums page Compiling EE3 - For those that want the latest unreleased feat

Dec 15, 2022

A Minecraft plugin API

SpongeAPI A mature Minecraft plugin API (not including an implementation), licensed under the MIT License. Homepage Source Issues Documentation Commun

Dec 27, 2022

🗺️ Minecraft map editor and mod

A Minecraft Map Editor... that runs in-game! With selections, schematics, copy and paste, brushes, and scripting! Use it in creative, survival in sing

Jan 1, 2023

Essentials - Minecraft server command mod - Adds over 100 commands for use in-game to help manage a server

Essentials Development Readme The official repository is at: https://github.com/essentials/Essentials We use NetBeans 7.3 for development. Recommended

Jan 7, 2023

A fast, customizable and compatible open source server for Minecraft: Java Edition

A fast, customizable and compatible open source server for Minecraft: Java Edition

Glowstone A fast, customizable and compatible open source server for Minecraft: Java Edition. Introduction Glowstone is a lightweight, from scratch, o

Dec 31, 2022
Owner
null
Minecraft mod running on the TTCp engine to load modules written in JS at runtime - with runtime deobfuscation!

PolyFire ClickGUI opens with NUMROW_0 How to use: Run -jsmodules to initialize Navigate to your .minecraft folder Go to config/pf/modules/ Copy Exampl

Daniel H. 8 Nov 18, 2022
A client-side Fabric mod for Minecraft Beta 1.7.3 that allows you to connect to servers running almost any patch from Alpha v1.1.2_01 to Beta 1.7.3.

multiversion-fabric A client-side Fabric mod for Minecraft Beta 1.7.3 that allows you to connect to servers running almost any patch from Alpha v1.1.2

0n1 2 Mar 13, 2022
Plugin aimed at unifying inventory menus for Java Edition with Bedrock Edition forms, on servers running Geyser.

CrossplatForms A plugin aimed at providing fast, easy, and dynamic creation of Bedrock Edition forms through configurations. Also allows for creation

ProjectG 43 Jan 4, 2023
Forge example mod showing how to implement native hwid.

auth-client What is this? A forge mod showing how to use this How to use? Copy into your mod or use the base and make your own. You have to compile th

Jake Priddle 6 Jul 1, 2021
Example mod for Minicraft projects

MiniFabric Example Mod Setup No real setup instructions yet, but it should be very similar to the setup explained on the fabric wiki page, until you h

null 1 Jan 30, 2022
A basic representation of the 0-player game, "Game-of-Life", a simple example of basic cellular automata

Game-Of-Life-Basic A basic representation of the 0-player game, "Game-of-Life", a simple example of basic cellular automata. A cellular automaton is a

Nikhil Narayanan 5 Oct 27, 2022
A mixin based ghost client for Minecraft 1.8.9 built on Minecraft Forge.

A mixin based ghost client for Minecraft 1.8.9 built on Minecraft Forge. Originally designed as a MCP Client (called Tephra), it is now being ported t

Peanut 130 Jan 1, 2023
An efficient map viewer for Minecraft seed in a nice GUI with utilities without ever needing to install Minecraft.

To download it head to the Releases section. To run it: either double click it on it if you have the Java Runtime (JRE) or use the command line (shift

Neil 127 Dec 24, 2022
A free mixin-based injection hacked-client for Minecraft using Minecraft Forge.

Custom LiquidBounce 1.8.9 build that aims to improve original visuals and bypasses, along with built-in ViaVersion to help you change from 1.8 to 1.17.1 without creating any other version branch.

epic group of paster 123 Jan 2, 2023
Small mod for Minecraft Forge 1.16.5 that sends messages of in-game events to a channel in your Discord server. This mod also enables cross-chatting between Minecraft and Discord.

DiscordSync Small mod for Minecraft Forge 1.16.5 that sends messages of in-game events to a channel in your Discord server. This mod also enables cros

AeonLucid 4 Dec 20, 2022