editor icon indicating copy to clipboard operation
editor copied to clipboard

API for entity/item/block identifiers

Open Tschipp opened this issue 4 years ago • 1 comments

Summary API Access Point for all registred entity/item/block identifiers, including vanilla and all from the addon itself. Ideally this access point is available for compiler plugins and custom components. The API would provide an array of registred identifiers for each type.

Alternatives/Considerations Direct access to content of schemas, but that is probably harder to do than the other idea.

Additional context/Motivation Can be used in custom components to create an interact filter that only activates for no item in hand, and a large amount of other useful ideas.

Tschipp avatar Jan 15 '22 14:01 Tschipp

Discussed in DMs:

  • The call to the corresponding API methods must register a new file dependency so the component updates whenever the identifier list changes
  • We need to build fetching identifiers into dash (cannot use lightning cache because the api needs to be available within the standalone build as well)
  • Query identifiers based on item/block tag

solvedDev avatar Jul 12 '22 20:07 solvedDev