← Назад к ресурсам

WolfyUtils

Core API & Utils for Spigot based plugins. Inventory GUI, Language, JSON (Jackson), and many more utils

Modrinth library management utility

Описание

![bstats_server](https://img.shields.io/bstats/servers/5114?label=Servers) ![github_commit](https://img.shields.io/github/last-commit/WolfyScript/WolfyUtils-Spigot) Core API that provides an API and Utils for plugins based on Spigot. **This is the Spigot implementation of WolfyUtils. For more info see [WolfyScript/WolfyUtilities](https://github.com/WolfyScript/WolfyUtilities)** ### 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](https://github.com/KyoriPowered/adventure) implementation. - **Config** - Simple config utilities. - **NMS** - Type specific **RecipeIterator**, and some Block and Inventory Utils. - **CustomItems** - Create 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 - [**HOCON**](https://github.com/lightbend/config/tree/main#using-hocon-the-json-superset) support for a more human friendly config option. - 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. 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. [![](https://user-images.githubusercontent.com/41468455/237019976-6b66b7f4-3d26-4b2f-b858-463ffe675531.png)](https://billing.kinetichosting.net/aff.php?aff=345)