DIAPI (short for Dynamic Item API) is a mod aimed at easing the registration and addition of content easily. DIAPI is a library mod, meaning that it performs no function without another mod using it.
Technical Info
DIAPI uses Model Loaders, Models, Baked Models, and Item Overrides to dynamically render items. It is aimed at easing the process and making it as painless as possible. For example: normally, code for rendering textures based on NBT data is very complex, as you need to transform the pixels to quads and remove internal quads. DIAPI has builtin functions to handle this (though you can set up your own renderer).
For Documentation, look at the Example Renderer and the Javadocs
DIAPI depends on James Registry API, as well as Architectury API (because James Registy API depends on it).
You WANT to use DIAPI if
- You need a model to be rendered dynamically
- You need a rendering system that is quick and easy to write
- You need a flexible rendering system
- You want a variety of functions, such as blending
You do NOT want to use DIAPI if
- Your model is rendered statically
- You want to use a BEWLR, not a model loader
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+