Early Tags 使得数据能够在远超正常时机的时候提前可用。它通过手动读取 jar 包内容来实现这一点,方式与 Static Data 相同,并像 Suspicious Shapes 那样解析网格外的原版数据。在此情况下,实现是一个围绕 tag(标签)数据的超轻量级方案(Static Data 拒绝读取它,因为这只是个愚蠢的想法)。
未来工作可能会扩展到其他类型的数据,但标签感觉是最棒、最理想的功能。
本模组旨在作为其他模组的“内置”库使用。
FAQ:
可以提前多久使用 EarlyTags?
只要 Fabric 构建了 ModContainers 即可,这可能在 Bootstrap 之前的 mixin 阶段就发生了。
等等,什么?
请以书面形式提交您的问题。为了获得最快的回复时间,请使用古典拉丁语。
标签不可能那么早就可用!
你妈也“不在场”,但这并没有阻止我们昨晚的行动。
如何在世界加载/客户端同步之前就拥有标签?
大量的阅读,以及一点点的黑魔法。你知道的,磨刀不误砍柴工。
这是个愚人节玩笑吗?
最好的笑话是完全真实的。这就是其中之一。
我该如何使用它?
将此模组作为“包含项”引入(整个库仅 16KiB,其中图标占 4KiB),然后调用 blue.endless.earlytags.EarlyTags 上的访问器方法。你获得的 EarlyTag 对象随后可通过 contains 进行成员资格测试。所有内容均使用 Identifier,因为物品和方块可能还不存在。
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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧