AttachmentsAPI
Allows registration of saved, synched custom data on any entity using a simple event, attachments can also be setup to allow changing from only serverside or only clientside but by default can be set by client or server
介绍
This is an API meant to be used by other mods and is not a standalone mod, its the second API I’ve ever made and its intended to allow easy registration of custom data for entities that are both saved and synched while also adding events for pre/post updating of the data and also an event for when a value changes (with support to cancel or change the new value)
Any API I make is mainly meant for usage in something else I’m working on or in general for my mods, however they are available for public use if a user desires
If you would like to use this API then you can find the relevant information below;
- Event used to register custom data [RegisterAttachmentsEvent]
- Event used to add registration helpers [RegisterAttachmentTypesEvent] (Optional Command Support)
- Event used to trigger things on data update [UpdateAttachmentEvent]
- Event used to change or prevent data changes [ChangeAttachmentEvent]
- Utility class used to interact with custom data easily [Attachments]
常见问题
AttachmentsAPI 支持哪些 Minecraft 版本?
AttachmentsAPI 支持 Minecraft Java 版 1.21.8,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。
AttachmentsAPI 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
spiderman31807 的其他作品
查看全部 →Zombie Infection
僵尸会感染玩家而非将其杀死;感染后,玩家的行为将与僵尸完全相同。
Zombie Infection
僵尸会感染玩家,而不是杀死玩家。感染后,玩家的行为与僵尸完全相同。
Tameable Spiders
一款使用 MCreator 制作的模组,可以驯服蜘蛛
Villager Inventory
为村民背包添加GUI,让繁殖村民更轻松!
评论
登录后评论和评分