Early Tags makes data available WAY before it should be. It does this by manually reading jar contents in the same way that Static Data does, and parsing the vanilla data off-grid like Suspicious Shapes does. In this case, the implementation is an ultra-light one centered around tag Data (which Static Data will refuse to read, because it's just a silly idea).
Future work may expand to other kinds of data, but tags felt like the best, most desirable feature.
This mod is intended to be used as an "included" library for other mods.
FAQ:
How early can you use EarlyTags?
As soon as Fabric has constructed the ModContainers, which could be at mixin-time before Bootstrap.
Wait, what?
Please submit your questions in writing. For the quickest response times, please use Classical Latin.
Tags aren't available that early!
Your mom also "wasn't available," but that didn't stop us last night.
How can you have tags before the world is loaded / the client is synced?
A lot of reading, and a little bit of black magic. You know, measure twice, cut once.
Is this an April Fools' joke?
The best jokes are completely true. This is one of those.
How do I use this?
Include this mod as an "include" (the whole library is 16KiB, of which 4KiB is the icon) and call an accessor on blue.endless.earlytags.EarlyTags
. The EarlyTag object you get can then do membership tests with contains
. Everything is by Identifier since items and blocks probably won't exist yet.
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+