You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bogdan edited this page Jul 30, 2025
·
3 revisions
Creating a Visor Addon
To create a Visor addon, you simply need to define a class that implements VisorAddon, and register your addon using:
VisorAPI.registerAddon(your_addon);
Important: The registration must occur before Visor is initialized.
(Visor is initialized after Minecraft resources are loaded)
It is recommended to register your addon during your mod's initialization phase.
Using Visor as a Dependency
It is strongly recommended to depend only on the visor-api module. This module is designed to be stable and is much more reliable for addon development compared to visor-core.
Only use visor-core if:
The functionality you need is not exposed through visor-api
In such cases, you can use the visor-fabric or visor-forge artifact, which includes both visor-api and visor-core. However, you should still minimize your reliance on visor-core wherever possible.