-
Notifications
You must be signed in to change notification settings - Fork 3
How to create an 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.
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.
You can find example Gradle setups here.