mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-04-02 16:56:59 +00:00

Historically we'd provide specific data based on the current item and NBT (hence BasicItemDetailProvider). However, with components, it now makes sense to provide details for all items with a specific component. This commit adds a new "ComponentDetailProvider" class, that reads a component from an item stack (or other component holder) and provides details about it if present.