N3rdy-Lib 是一个库模组,其中包含在我制作 Minecraft 模组时所需的各种功能。目前它包含以下内容:
一个用于 NbtObjects 的类。NbtObjects 是可以直接放入 NBT 复合标签的对象,因为它们实现了 NbtElement 接口。所有数据处理工作已经完成,除了客户端到服务器的同步部分,这可以通过更新 nbtcompound 来实现。
一个用于左键点击物品的接口。当手持物品并按下左键时会执行特定功能的物品。同时也支持按住左键的功能。这两种方法都提供了客户端和服务器端的方法,除非另有说明,否则还需要一个共享方法。
一个用于物品的接口,使它们在一般库存中能够赋予属性修饰符。可以想象成护身符或项链,但不需要自定义装备槽位的麻烦。为了性能考虑,属性修饰符每5个游戏刻更新一次。
如果你想利用这个模组进行个人开发,我强烈建议你查看 GitHub 上的代码或在 Discord 上联系我!
N3rdy-Lib is a library mod that contains stuff while i make minecraft mods. It currently contains the following:
A class for NbtObjects, NbtObjects are objects that can be directly put on nbt compounds due to them implementing the NbtElement interface. All data handling is already done except client to server synchronisation, which can be done by updating the nbtcompound.
An interface for left click items. Items that exectute a function when you use the left click button when holding it. Also has a method for holding the left click button. Both methods provide a client and server method and will need a shared method if not specifically stated otherwise for now.
An interface for Items that lets them grant attribute modifiers while inside of the general inventory. Think of charms and amulets without the hassle for the custom equipment slots, the attribute modifiers update once every 5 ticks for performance sake.
If you want to make use of this mod for personal development i highly recommend checking out the github for the code or asking me on the discord!
评论 0
登录后参与评分
还没有评论,来抢沙发吧