Mod API - Vivecraft/VivecraftMod GitHub Wiki
An API for other mods to access Vivecrafts data is available since mod version 1.3.0. It provides the ability to get players pose data, register Trackers/Modules for Vivecraft to process for the local player, and provide information about the current render state.
Setup:
For now there is no dedicated API library to rely on in projects. Because of that it is recommended to just use the full mod from Modrinth/Curseforge maven as dependency.
Relying on the mod for 1.21.4 fabric from Modrinth would be declared like this:
modApi "maven.modrinth:vivecraft:1.21.4-1.3.0-fabric"
Example Mod
An example mod by hammy275 using some of the API features can be found here
Javadoc
The full javadoc is available here.
API Structure
The Api is structured into three parts client, common and server:
Client
VRClientAPI:
Allows to interact with the local main player side of Vivecraft.
VRRenderingAPI:
Allows to interact with the rendering side of Vivecraft.
Common
VRAPI:
Allows to interact with the common side of Vivecraft, that are the same on client and server.
Server
VRServerAPI:
Allows to interact with the server side of Vivecraft.