Skip to content

Compatibility

yurisuika edited this page Aug 4, 2024 · 37 revisions

How It Works

Raised has been rewritten to encompass a wide variety of mod support without needing to hack into any mods to get them to work!

On Fabric, this includes any mods which add their code in any moved element's method or immediately next to where it is called in the HUD's main render method. As well, mods that inject at the head or tail of the main render method are supported if extended mod support is enabled.

On Forge, HUD elements are already encapsulated and the vanilla methods do nothing, so Raised supports HUD elements rendered to corresponding vanilla ones using RenderGameOverlayEvent (1.16-1.18) and RenderGuiOverlayEvent (1.19+). As well, there is extended mod support for anything using the ALL element type in 1.16-1.18. In 1.17-1.18, mods that use OverlayRegistry in correspondence with the raised vanilla elements are supported. In 1.19+, the same goes for mods that use RegisterGuiOverlaysEvent. However, Forge 50 (post 1.20.4) removes these events, so it relies on the GUI mixins like on Fabric for now.

NeoForge sees similar analogs to those of Forge's events, just with different names!


Adding Compatibility

Raised 4.x adds an API and drops Object Share support on Fabric due to its increased complexity. Please use the methods in the RaisedApi class to add support for your mod if it doesn't work with one of the 8 supported elements!

Clone this wiki locally