PAPER provider API 2.0
Coordinate with PAPER's reload animation without owning its internals.
PAPER publishes runtime state, captured native transforms and hand poses, native animation authority, frame events and the native pose pipeline, plus a physical-reload lease, through header-only interfaces in its own repository. Consumers get bounded copied values, negotiated capabilities and explicit leases, never engine pointers or graph ownership.
Interfaces
| ID | Interface | Header | What it does |
|---|---|---|---|
| 1 | Provider | PAPER/Provider.h | Owner registration, runtime and configuration state, native capture, animation authority, frame events and the native pose pipeline. 16 calls. |
| 2 | PhysicalReload | PAPER/PhysicalReload.h | Takes the equipped weapon away from PAPER's native reload animation for a short renewed lease while your mod drives the reload with the player's hands. 3 calls. |
Both are major 2, minor 0, discovered through PAPERAPI_QueryInterfaceV1. Mods built for the pre-2.0 API (PAPERApi.h) are refused; see migrating from PAPER 1.2.
What you can build on
Captured hand/finger data plus PAPER's native, resolved, and presented hand solution. This is observation, not generic IK control.
Lease · hands · manual cyclePhysical reloadTake a reload or manual cycle away from PAPER's native animation while your mod drives it with the player's hands.
Contract at a glance
- Add PAPER's
include/directory to your build and include<PAPER/...>; link no PAPER library. - Resolve
PAPERAPI_QueryInterfaceV1from the loadedPAPER.dll;paper::api::Clientregisters your owner and acquires each further interface. - Request only the capabilities you need and verify every one was granted.
- Make provider calls on the PAPER game thread.
- Treat generation keys as cache invalidators.
- Clear leases and authority, unregister callbacks, then close the owner.
Start with discovery and capabilities.
Current runtime integration
Read current behavior and the PAPER runtime guide for recent fixes and configuration boundaries.