Мова

Unified API

Unified API

Modrinth

A multiloader API built to enable easy cross-loader mod development

14.7k завантажень 5 підписників оновлено 25d ago
остання v26.1-r4.3-fabric Modrinth
Fabric Neoforge 1.21.11 – 26.1.2 Library

Unified API

Unified API is a cross-loader API for both Fabric & NeoForge that enables you to create multiloader mods at no additional effort.

This is accomplished through Unified API's custom registries, events and helpers which replace the need for platform-specific code in favour of using Unified API's common-friendly, well-documented alternatives.

Unified API has no dependencies - simply Fabric API for Fabric, or base NeoForge for NeoForge.

For comprehensive documentation alongside a setup guide, check out unified-api.dev

Why use the Unified API over another API?

  • Deferred Registries allow you to register content for any vanilla or modded registry
  • a ton of easy-to-use, documented events - including some extremely powerful ones such as the Loot Table, Default Data Component or Biome Modification events
  • helper methods to handle any common loader-specific code, often in ways that further expand functionality (such as BLOCK_CONVERSIONS, STRUCTURE_MUSIC or CREATIVE_ENTRIES)
  • data-component-driven functionality such as furnace fuel or compost components
  • no breaking changes to the API in the same Minecraft version, and changes made between full MC releases of the API are thoroughly documented in the migration guide
  • consistent ports to the latest versions, with features designed with them in mind

Registries include:

  • Deferred Registry
  • Items
  • Blocks
  • Entity Types
  • Block Entity Types
  • Creative Tabs
  • Data Component Types
  • Sound Events
  • Key Mappings

Helpers include:

  • Platform (check for mods / modloader / other instance information)
  • Packs (register internal data / resource packs)
  • Creative Entries (insert items to creative tabs)
  • Networking (register, send & handle packets)
  • Biome Modifications (akin to the fabric biome api, easily modify the features, carvers, effects, attributes or climate of any biome)
  • Block Conversions (custom block swapping behaviour such as strippable logs)
  • Particle Providers (create custom particles for the client)
  • Entity Renderers (setup rendering for custom entity / block entity models & textures)
  • Tooltips (bind custom client tooltip information to a tooltip, similarly to bundles)
  • Data Components (append custom components to blocks / items such as furnace fuel or compost behaviour, or any other component)
  • Structure Music (register unique music pools to any structure)
  • Legacy Baby Armor (automatically resize, and optionally rescale, adult armor to match baby mobs without requiring dedicated textures)

Events include:

  • Default Data Components (filter for & modify the default components on any item)
  • Loot Tables (append any loot table with new pools, or directly edit existing loot entries)
  • Commands (create custom commands)
  • Players (run code on player events such as join/leave/respawn)
  • Ticks (run code at the start / end of client ticks, such as custom keybind code)
  • Guis (append hud rendering such as crosshair and hotbar rendering)
  • Screens (access AbstractContainerScreen in order to create custom mouse behaviour)
  • Servers (run code on server start / stop / datapack load / server ticks / level ticks)

Components include:

  • Furnace Fuel (easily specify custom furnace fuel durations for any item)
  • Compost (make any item compostable with a given float chance)

Tags include:

  • Persistent Cooldowns (enforce item cooldowns on tagged items per-player between world loads)

Once again, be sure to check out unified-api.dev for documentation and the full feature set.

Версії

Release
26.1-r4.3-fabric
fabric · 26.1, 26.1.1, 26.1.2 · 25d ago
Changed - NeoForge-side `UnifiedEvents.LootTables` no longer unnecessarily overrides other mods' NeoForge-driven loot tables
5.0k
Release
26.1-r4.3-neoforge
neoforge · 26.1, 26.1.1, 26.1.2 · 25d ago
Changed - NeoForge-side `UnifiedEvents.LootTables` no longer unnecessarily overrides other mods' NeoForge-driven loot tables
396
Release
26.1-r4.2-fabric
fabric · 26.1, 26.1.1, 26.1.2 · 26d ago
Added - `UnifiedHelpers.NETWORKING` and `UnifiedClientHelpers.NETWORKING` - - added `canSend` method Changed - `UnifiedHelpers.NETWORKING` and…
111
Release
26.1-r4.2-neoforge
neoforge · 26.1, 26.1.1, 26.1.2 · 26d ago
Added - `UnifiedHelpers.NETWORKING` and `UnifiedClientHelpers.NETWORKING` - - added `canSend` method Changed - `UnifiedHelpers.NETWORKING` and…
34
Release
26.1-r4.1-fabric
fabric · 26.1, 26.1.1, 26.1.2 · 1mo ago
Added - `UnifiedHelpers.STRUCTURE_MUSIC` - - added support for structure tags Changed - internal structure music refactors - moved helper impls into impl…
777
Release
26.1-r4.1-neoforge
neoforge · 26.1, 26.1.1, 26.1.2 · 1mo ago
Added - `UnifiedHelpers.STRUCTURE_MUSIC` - - added support for structure tags Changed - internal structure music refactors - moved helper impls into impl…
70
Release
26.1-r4.0.4-fabric
fabric · 26.1, 26.1.1, 26.1.2 · 1mo ago
- fixed composting issues on Fabric
856
Release
26.1-r4.0.3-fabric
fabric · 26.1, 26.1.1, 26.1.2 · 1mo ago
- fixed Fabric biome modification feature order
402
Release
26.1-r4.0.1-fabric
fabric · 26.1, 26.1.1, 26.1.2 · 1mo ago
- fixed Fabric client particle providers
18
Release
21.11-b2.0.1-fabric
fabric · 1.21.11 · 1mo ago
- fixed Fabric client particle providers
449
Release
26.1-r4.0-fabric
fabric · 26.1, 26.1.1, 26.1.2 · 1mo ago
Added - `Supplied` - - new generic class which accepts generics and functions much like `Supplier` - - extends `ResourceKey`, implements `Supplier` and…
127
Release
26.1-r4.0-neoforge
neoforge · 26.1, 26.1.1, 26.1.2 · 1mo ago
Added - `Supplied` - - new generic class which accepts generics and functions much like `Supplier` - - extends `ResourceKey`, implements `Supplier` and…
128

Коментарі 0

Поки немає коментарів. Будь першим, хто поділиться думкою.

Завантажити Unified API

R 26.1-r4.3-fabric 26.1, 26.1.1, 26.1.2 fabric 309 KB R 26.1-r4.3-neoforge 26.1, 26.1.1, 26.1.2 neoforge 336 KB R 26.1-r4.2-fabric 26.1, 26.1.1, 26.1.2 fabric 309 KB R 26.1-r4.2-neoforge 26.1, 26.1.1, 26.1.2 neoforge 335 KB R 26.1-r4.1-fabric 26.1, 26.1.1, 26.1.2 fabric 308 KB R 26.1-r4.1-neoforge 26.1, 26.1.1, 26.1.2 neoforge 335 KB R 26.1-r4.0.4-fabric 26.1, 26.1.1, 26.1.2 fabric 305 KB R 26.1-r4.0.3-fabric 26.1, 26.1.1, 26.1.2 fabric 305 KB R 26.1-r4.0.1-fabric 26.1, 26.1.1, 26.1.2 fabric 305 KB R 21.11-b2.0.1-fabric 1.21.11 fabric 135 KB R 26.1-r4.0-fabric 26.1, 26.1.1, 26.1.2 fabric 305 KB R 26.1-r4.0-neoforge 26.1, 26.1.1, 26.1.2 neoforge 332 KB R 26.1-r3.2-fabric 26.1, 26.1.1, 26.1.2 fabric 301 KB R 26.1-r3.2-neoforge 26.1, 26.1.1, 26.1.2 neoforge 324 KB R 26.1-r3.1.2-fabric 26.1, 26.1.1, 26.1.2 fabric 295 KB R 26.1-r3.1.2-neoforge 26.1, 26.1.1, 26.1.2 neoforge 318 KB R 26.1-r3.1-fabric 26.1, 26.1.1, 26.1.2 fabric 295 KB R 26.1-r3.1-neoforge 26.1, 26.1.1, 26.1.2 neoforge 318 KB R 26.1-r3.0.4-fabric 26.1, 26.1.1, 26.1.2 fabric 288 KB R 26.1-r3.0.4-neoforge 26.1, 26.1.1, 26.1.2 neoforge 315 KB R 26.1-r3.0.2-fabric 26.1, 26.1.1, 26.1.2 fabric 288 KB R 26.1-r3.0.1-fabric 26.1, 26.1.1, 26.1.2 fabric 287 KB R 26.1-r3.0-fabric 26.1, 26.1.1, 26.1.2 fabric 289 KB R 26.1-r3.0-neoforge 26.1, 26.1.1, 26.1.2 neoforge 313 KB R 26.1-r2.2.1-neoforge 26.1, 26.1.1, 26.1.2 neoforge 307 KB R 26.1-r2.2-fabric 26.1, 26.1.1, 26.1.2 fabric 281 KB R 26.1-r2.2-neoforge 26.1, 26.1.1, 26.1.2 neoforge 307 KB R 26.1-r2.1-fabric 26.1, 26.1.1, 26.1.2 fabric 281 KB R 26.1-r2.1-neoforge 26.1, 26.1.1, 26.1.2 neoforge 307 KB R 26.1-r2.0-fabric 26.1, 26.1.1, 26.1.2 fabric 278 KB R 26.1-r2.0-neoforge 26.1, 26.1.1, 26.1.2 neoforge 303 KB R 26.1-r1.2.2-fabric 26.1, 26.1.1, 26.1.2 fabric 273 KB R 26.1-r1.2.2-neoforge 26.1, 26.1.1, 26.1.2 neoforge 298 KB R 26.1-r1.2.1-fabric 26.1, 26.1.1 fabric 273 KB R 26.1-r1.2.1-neoforge 26.1, 26.1.1 neoforge 298 KB R 26.1-r1.2-fabric 26.1, 26.1.1 fabric 273 KB R 26.1-r1.2-neoforge 26.1, 26.1.1 neoforge 298 KB R 26.1-r1.1-fabric 26.1, 26.1.1 fabric 273 KB R 26.1-r1.1-neoforge 26.1, 26.1.1 neoforge 297 KB R 26.1-r1.0-fabric 26.1, 26.1.1 fabric 272 KB R 26.1-r1.0-neoforge 26.1, 26.1.1 neoforge 297 KB B 26.1-b8.2-fabric 26.1, 26.1.1 fabric 278 KB B 26.1-b8.2-neoforge 26.1, 26.1.1 neoforge 304 KB B 26.1-b8.1-fabric 26.1, 26.1.1 fabric 271 KB B 26.1-b8.1-neoforge 26.1, 26.1.1 neoforge 298 KB B 26.1-b8.0-fabric 26.1, 26.1.1 fabric 263 KB B 26.1-b8.0-neoforge 26.1, 26.1.1 neoforge 289 KB B 26.1-b7.2-fabric 26.1, 26.1.1 fabric 253 KB B 26.1-b7.2-neoforge 26.1, 26.1.1 neoforge 280 KB B 26.1-b7.1-fabric 26.1 fabric 242 KB

Файли надаються напряму з першоджерела. Modgrid не зберігає та не змінює їх.