Mod API VRRenderingAPI - Vivecraft/VivecraftMod GitHub Wiki
You can find the full javadoc for the VRRenderingAPI here.
Allows to interact with the rendering side of Vivecraft:
- check the render state with:
isVanillaRenderPass
:true
if Vivecraft is currently inactive, and the game is rendering normally.isFirstRenderPass
:true
if Vivecraft is currently rendering the world for the first time this frame.getCurrentRenderPass
: returns more information about which perspective is currently being rendered. SeeRenderPass
for available options.
- helpers for rendering at the hands:
getHandRenderPos
: to get the render position of the hand, this also handles the hand position for the seated players.setupRenderingAtHand
: sets the given PoseStack/Matrix to render at the hand.