question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The modularization of the Fabric API has gone too far

See original GitHub issue

The title says it all. We currently have 42 modules in the Fabric API. Often times these modules have somewhat of an overlaping scope. I propose a massive refactor to reduce the number of modules, remove the deprecated modules, and propose higher scrutiny for new modules. Looking through the modules, they often only have a handful of classes, and should be merged into other modules. My proposed modules: module: existing modules to include item : item, itemgroup, tool-attribute, mining-levels, the item section of object-builder (model predicate providers) block: block-render-layer, block section of object-builder, container entity: entity-events, villager parts of object-builder world: biome, dimension, structure, gamerule, (command?), loot-tables, advancements section of object-builder lifecycle: lifecycle, (command?) rendering: all rendering apis, particles, textures, models client: keybinds screen: screen, screen-handler registry: registry-sync

Modules that stay: resource-loader, networking, tag-extensions, crash-reports, and base

This list may not be complete, but i think reducing the number of modules will be an important part of the fabric API moving forward

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:12
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
LambdAuroracommented, Mar 10, 2021

I agree with most.

But I entirely disagree with the rendering part, renderer-api should stay separate from the other rendering stuff.

0reactions
liachcommented, Mar 14, 2021

Another criteria for grouping modules imo would be allowing them to break in updates. I hope this can be considered when we try to merge modules, i.e. don’t merge frequently changed modules with relatively stable modules. Biomes can stay as it blows up often given mojang’s frequent updates.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Fabric API Problem - gists · GitHub
Fabric API is supposed to be modular. This means that mod devs should be able to pick and choose which Fabric API modules...
Read more >
Fabric API - Mods - Minecraft - CurseForge
Fabric's APIs are lightweight and modular, making porting faster and game instances leaner. Fabric development targets snapshots as well as release versions, ...
Read more >
So what is Fabric exactly? : r/feedthebeast - Reddit
Fabric's APIs are lightweight and modular, making porting faster and game instances leaner. Fabric development targets snapshots as well as ...
Read more >
Fabric launcher gives me error when starting - Minecraft Forum
I want to use Voxelmap and so I had to download fabricmod and ... Fabric is a modular system so things like APIs,...
Read more >
Fabric for Minecraft 1.14.2
What are the changes, from Fabric API 0.2.x? The biggest one is modularization. In short, instead of being one big blob of patches,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found