mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-04-27 05:03:16 +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.