Minecraft 1.16 – 1.19
需要 Java 16!
为核心 API,为基于 Spigot 的插件提供 API 和工具。
—————————————————
APIs & Utils
- API 依赖于插件,这意味着每个插件都有一个独立的 API 实例。
- Utils 是插件无关的。它们可以在任何地方使用。
- Registry 绑定在 WolfyUtilities 的核心上,但可以从任何地方访问。
APIs
- Inventory - 用于创建游戏内 GUI 的功能性 API。
- Language - 加载基于 JSON 的语言文件,并支持为 GUI、消息等提供多语言功能。
- Chat - 发送可翻译的消息、文本点击事件回调等。
- (3.16.1+)KyoriPowered/adventure 实现。
- Config - 简单的配置工具。
- NMS - 功能齐全的 NBTTag API、自定义 RecipeIterator 以及一些方块和库存工具。
- CustomItems - 创建灵活的自定义物品,支持自定义燃料、耐久度、动作等设置。
Registry
Registry 是 WolfyUtilities 及其衍生插件中所有自定义内容的基础。它允许你通过唯一的命名空间键注册类型和对象。这不仅允许插件注册诸如 CustomItems 等内容,还可以被其他插件扩展。
Utils:
- NamespacedKey - 所有可注册内容的唯一键。
- JSON - 各种 Jackson 工具,简化反序列化/序列化
- Bukkit 对象的自定义反序列化/序列化器
- 从 Registry 值轻松反序列化/序列化
- 对象(参见 @OptionalKeyReference)
- 类型到对象(参见 @KeyedTypeIdResolver & @KeyedTypeResolver)
- Particles - 使用 JSON 配置自定义粒子效果和动画。
- RandomCollection - 基于权重的随机集合。
- Reflection - 基础反射工具。
- Player Head 工具,用于设置纹理等。
- 基本的 MySQL 连接,用于运行查询和更新。
- ItemBuilder,用于编辑/创建 ItemStack。
- 保存玩家特定数据。
使用 WolfyUtilities 的插件
CustomCrafting
CustomCrafting 严重依赖这些 APIs 和 Utils,与其说是独立插件,不如说是一个扩展。
CustomCrafting 特别利用了 InventoryAPI 来创建和管理游戏内的 RecipeCreators。JSON 工具用于从 JSON 加载/保存配方和物品,并允许在 json 文件中进行自定义设置。
有关文档和问题,请访问 GitHub!
Minecraft 1.16 – 1.19
Requires Java 16 !
Core API that provides an API and Utils for plugins based on Spigot.
—————————————————
APIs & Utils
- API is plugin dependent, which means there is one instance of the API per plugin.
- Utils are plugin independent. They can be used everywhere.
- Registry is bound to the core of WolfyUtilities, but can be accessed from anywhere.
APIs
- Inventory - Functional API to create in-game GUIs.
- Language - Load JSON based language files and support multiple languages for GUIs, messages, etc.
- Chat - Send translatable messages, text click event callbacks, and more.
- (3.16.1+) KyoriPowered/adventure implementation.
- Config - Simple config utilities.
- NMS - Fully featured NBTTag API, custom RecipeIterator, and some block and Inventory Utils.
- CustomItems - Create flexible custom items with settings like custom fuel, durability, actions, etc.
Registry
The Registry is the base of all custom content in WolfyUtilities and the plugins that build on it. It allows you to register types & objects under unique namespaced keys. That not only allows the plugin to register things like CustomItems, etc., but it can be extended by other plugins too.
Utils:
- NamespacedKey - Unique key for all registrable content.
- JSON - Various Jackson utils that simplify de-/serialization
- Custom de-/serializer for Bukkit objects
- Easy de-/serialization from Registry values
- Object (See @OptionalKeyReference)
- Type to object (See @KeyedTypeIdResolver & @KeyedTypeResolver)
- Particles - Configure custom particle effects & animations using JSON.
- RandomCollection - Weight based random collection.
- Reflection - Basic Reflection Utils.
- Player Head utils to set textures and more.
- Basic MySQL connection to run queries and updates.
- ItemBuilder to edit/create ItemStacks.
- Save player specific data.
Plugins using WolfyUtilities
CustomCrafting
CustomCrafting is heavily based on these APIs and Utils, and is more of an extension than standalone plugin.
CustomCrafting especially makes use of the InventoryAPI to create and manage the in-game RecipeCreators. The JSON utils are used to load/save recipes & items from/to JSON, and to allow for custom settings inside the json files.
For documentation and issues, visit GitHub!
下载 WolfyUtilities
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 WolfyUtilities
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 WolfyUtilities
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 WolfyUtilities
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 WolfyUtilities
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 WolfyUtilities
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 WolfyUtilities
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 WolfyUtilities
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 WolfyUtilities
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 WolfyUtilities
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
插件
一个强大的 API,用于为你的 Minecraft 服务器创建自定义进度。
插件
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
评论 0
登录后参与评分
还没有评论,来抢沙发吧