Class FpArmRendererMixin

java.lang.Object
com.github.razorplay01.fp_pal.mixin.firstPerson.FpArmRendererMixin

public class FpArmRendererMixin extends Object
Replaces the vanilla bare arm with the animated first-person arms while a first-person animation is playing (see FpAnimationController#isPlayerArmMode()), and applies the animation's item bone pose to the held items.

Arm rendering is a 1:1 port of AzureLib's AzItemArmRenderUtil. By default the rig is rendered in a camera-centred frame (the player_arms_import.bbmodel convention, arms at x = ±6); a clip with fpDisplayAnchor: "hand" keeps the AzureLib hand frame instead. Only the arms the active clip animates are drawn.

The held item is deliberately not drawn here: it keeps using vanilla's item renderer, and this mixin only applies the fp_r_item / fp_l_item bone pose around that call after rewinding to the frame the vanilla hand pass started from.

  • Constructor Details

    • FpArmRendererMixin

      public FpArmRendererMixin()