CraftVentory | Create configurable inventories! [1.17+] icon

CraftVentory | Create configurable inventories! [1.17+] -----

An amazing library that makes inventory configuration and loading easier for developers.



CraftVentory v2.2.0 - Reworking inventory / pagination registration, Internal changes
Rework:
  • Reworking the way inventories are declared and registered. Introducing an InventoryDescriptor interface which is responsible for declaring inventory properties (providers, placeholders, hooks, config file, etc.). As this is an interface, it will not provide any behavior like the old way. It is then be used to create and register a new InventoryProvider in an InventoryService. By using this, we separate what is provided by the developer and what is provided by the library. The interface also has default methods with no implementation that developers can redefine if they needs to. See the wiki for more information about this new way to register inventories.
  • Reworking the way pagination are provided to be able to dynamically retrieve paginated values depending on the current context. Technically, instead of using a Supplier<List<T>>, using a Function<CraftVentory, List<T>> with the currently opened inventory and all its data as context. This enables to retrieve paginated data depending on the viewer / some inventory properties.
  • Reworking the way item action loaders are registered by using an enum instead of manually adding each loader one by one. This is an internal change to improve the code and has no impact on the behavior of the library.
----------, Dec 15, 2024
Resource Information
Author:
----------
Total Downloads: 109
First Release: Sep 26, 2024
Last Update: Dec 17, 2024
Category: ---------------
All-Time Rating:
1 ratings
Find more info at syrows-development.gitbook.io...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings