Download Common Storage Lib — Minecraft Mods — MetaMods

Common Storage Lib

Active

Downloads

0

Last update

6 months ago

Versions

1.21 — 1.21.1
Client and server
Fabric
Neoforge
Libraries

Common Storage Lib

Common Storage Lib continues developing the ideas of the Botarium project, creating truly cross-platform data storage management solutions. Like its predecessor, CSL provides developers with tools for creating universal storage code that can be registered in both Fabric and NeoForge APIs. The library combines the best features of both platforms: immutable resources and item context from Fabric with the simulation system from Forge.

Extended Abstraction Capabilities

Unlike Botarium, Common Storage Lib provides access to internal abstraction tools. In addition to storage management, the library offers:

  • Abstraction of fluid resources and ingredients
  • Universal work with the data attachment system
  • Integration of Entity Systems API for both platforms

Each of these systems is implemented as a separate module, allowing them to be used independently for various development purposes.

Benefits for Developers

For NeoForge projects: Support for immutable resources and item context significantly simplifies work with storage. CSL automatically handles interaction with other modifications.

For Fabric projects: The library helps overcome the complexities of Fabric's transaction system. However, developers should ensure that their storage implementation correctly works with rollback functionality – this feature is already built into CSL.

Current Development Status

Version 0.0.0 offers all Botarium capabilities and even more. The library supports not only energy and fluid blocks/items but also energy, fluid and item entities with full compatibility with NeoForge and Fabric Transfer API.

Despite ongoing testing, the project is in early development stages and continues to evolve actively.

Important Compatibility Aspects

For the Fabric platform, it's important to consider limitations in native support for certain storage types. CSL registers corresponding lookups in its own namespace, ensuring compatibility between modifications using the library, but not with other solutions.

Popular types such as energy blocks/items, fluid blocks/items, and item entities/blocks are fully compatible with the Fabric and NeoForge ecosystem, while NeoForge automatically supports all mentioned lookup types.

Project members
CodexAdrian

CodexAdrian

Developer

Created: 20 Jun 2024

ID: 24122