Skip to content
hcapi

Quick rating

Community listing page, reviews may not be monitored by the author.

hcapi

No reviews yet

Holder Component API - Allows conveniently attaching data to holders via datapack

Mod Loaders
Minecraft
26.3 26.2

About

Description

Holder Components by @CallMeEcho (with contributions from @EightSidedSquare) is a (hopefully) upcoming Fabric API module. This project repackages that WIP module as a library under FAPI's Apache-2.0 license and with permission from Echo. A big thank you to Echo for putting together such a useful and robust piece of code.

hcapi allows conveniently setting and accessing components on elements of any registry, not just items. These components may be data-driven or defined by code, and they may be synchronized to the client. This happens to make server-side default item components possible and straightforward.

See the PR for a description of the API. Note that instances of fabric in names and paths have been renamed to hcapi since this is not an official fabric library, so check the source code for exact names and paths.