Skip to main content

PAPER provider API 2.0

include/PAPER · provider API 2.0 · 2 interfaces

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​

IDInterfaceHeaderWhat it does
1ProviderPAPER/Provider.hOwner registration, runtime and configuration state, native capture, animation authority, frame events and the native pose pipeline. 16 calls.
2PhysicalReloadPAPER/PhysicalReload.hTakes 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​

Contract at a glance​

  • Add PAPER's include/ directory to your build and include <PAPER/...>; link no PAPER library.
  • Resolve PAPERAPI_QueryInterfaceV1 from the loaded PAPER.dll; paper::api::Client registers 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.