LazuLib
包含其他模组常用工具函数的模组开发库。
如果你是玩家,可能需要安装此模组才能使用其他依赖它的模组。
? 面向模组开发者的功能
- 数学表达式解析器和高亮显示支持自定义变量和函数。适用于 JSON 重载监听器,用于声明自定义数据包格式,以通过动态表达式扩展你的模组,这些表达式可以在游戏中渲染并带有参数进行求值。
- 容错反射工具函数,包括软字段/方法/构造函数包装器。非常适合非关键特性,如果你确实需要非关键特性的话。
- 自定义的Vec3d和Vec3f可变向量实现,提供许多有用的旋转方法。
- JSON 到 NBT 解析器,有助于从自定义数据包格式加载 NBT。
- NBTPath:使用点分隔路径轻松访问 NBT 值。有助于删除和创建复合结构。
- NBTPredicate:可序列化的 NBT 谓词,例如{Fireworks.Flight <= 3}。支持列表和复杂谓词,尽管它并不完美。
- NBTCompareHelper:轻松比较特定路径上的 NBT 标签。
- 基础数据包类,可在不同端之间自动携带玩家和世界引用。
- 基础分布式数据包类,发送到服务器后,如果在服务器上验证通过,则会中继给其他玩家(通常是跟踪发送者的那些)。如果数据包被标记为无效,可以反弹回发送者以同步错误玩家的客户端状态。适用于将玩家发起的动作同步给所有跟踪该行动者和服务器的玩家。
- 继承自 NBT 的基础形状合成配方类型,可以在配方形状中使用大写字母来标记原料作为结果物品 NBT 的来源。适用于升级类配方,应用于携带 NBT 或应保留附魔的物品。
- 音频工具函数,用于交叉淡入淡出以及创建附加在玩家身上的可滴答计时的声音。
- 文本组件工具函数,可按换行符拆分组件(包括客户端上的翻译文本)为特殊列表,从而向所有文本行广播格式化方法。适用于工具提示或多行翻译文本。
本库采用 MIT 许可证授权,因此如果你只需要其中的某个功能而不想给用户增加额外的依赖负担,欢迎直接从源代码中摘取使用。否则,感谢使用我的库。
❓ 帮助
本模组有一个维基页面,其中包含一些关于飞行的有用提示,并描述了如何按你的喜好配置此模组。
此外,如果你遇到任何问题,或者只是想打个招呼,欢迎前往我们的 Discord 服务器。
LazuLib
Modding library containing common utils for other mods.
If you're a player, you may be required to install this mod in order to use others.
? Features for mod developers
- Math expression parser and highlighter supporting custom variables and functions. Useful for JSON reload listeners to declare custom datapack formats to extend your mods with dynamic expressions that can be rendered in-game and evaluated with arguments.
- Failure tolerant reflection utils, including soft field/method/constructor wrappers. Convenient for non-critical features, if you really want non-critical features.
- Custom Vec3d and Vec3f mutable vector implementations, offering many useful methods for rotations.
- JSON to NBT parser, useful to load NBT from custom datapack formats.
- NBTPath: Easy access to NBT values using dot-separated paths. Useful to delete and create compound structures.
- NBTPredicate: Serializable NBT predicates, such as {Fireworks.Flight <= 3}. Supports lists and complex predicates, though it's not perfect.
- NBTCompareHelper: Compare NBT tags on specific paths with ease.
- Base packet classes to carry player and world references across sides automatically.
- Base distributed packet class, which is sent to the server and then relayed to other players (usually those tracking the sender) if validated on the server. If the packet is marked as invalid, it can be bounced back to resync the erroring player. Useful to synchronize player initiated actions to all players tracking the actor and the server.
- Base NBT inheriting shaped recipe type, which can use uppercase letters in the recipe shape to mark ingredients as NBT sources for the result item. Useful for upgrade-like recipes that apply to items carrying NBT or enchantments which should be preserved.
- Audio utils for crossfading and creating tickable sounds attached to players.
- Text component util to split components on line breaks (even translated ones on the client) into special lists that can broadcast formatting methods to all the text lines. Useful for tooltips or translated text containing multiple lines.
This library is licensed under the MIT License, so if you only need a certain feature but don't want to burden your users with an additional dependency, you're very welcome to just snatch it from the source. Otherwise, I appreciate you using my library.
❓ Help
This mod has a wiki, which includes some helpful tips about flying, and describes how you may configure this mod to your liking.
Also, if you're having any trouble, or maybe just want to say hello, feel free to drop by our Discord Server.
下载 LazuLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LazuLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LazuLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LazuLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LazuLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LazuLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LazuLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LazuLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LazuLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LazuLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
? 修复在过早访问 `RecipeManager` 时出现的 NPE(空指针异常)
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧