An API to add inventory tabs. Natively for 1.20.1 but should work on every version.
Made for SkillZ and based on Globox_Z's LibZ I stripped out the other code and added sidebar functionality.
Disabling Tabs
If a tab has its ID set, you can find it under config/tabapi_tabs.json.
true for enabled, false for disabled.
Developer Tutorial
- Create a tab class by extending
InventoryTab@Nullable Identifier id: The id of the tab. (Should only be set if its a permanent tab and allows it to be disabled)MutableText tooltip: The tooltip when hovered@Nullable Identifier icon: The icon for the tab (If null you can specify an item usinggetItemStackor custom rendering)int preferedPos: Preferred index of the tabboolean customRendering: If specified you have to overridecustomRenderin the tab classClass... screenClasses: All the classes that this tab is able to handle (Most cases only need 1)
- Register said tab with
TabAPI.registerInventoryTaborTabAPI.registerSideInventoryTabin your mods init
| Version | Minecraft | Loader | Download |
|---|---|---|---|
|
TabAPI 1.2.5 1.2.5 |
1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6
|
fabric
|
Download |
|
TabAPI 1.2.4 1.2.4 |
1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6
|
fabric
|
Download |
|
TabAPI 1.2.3 1.2.3 |
1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6
|
fabric
|
Download |
|
TabAPI 1.2.2 1.2.2 |
1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6
|
fabric
|
Download |
|
TabAPI 1.2.1 1.2.1 |
1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6
|
fabric
|
Download |
|
TabAPI 1.2.0 1.2.0 |
1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6
|
fabric
|
Download |
|
TabAPI 1.1.2 1.1.2 |
1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6
|
fabric
|
Download |
|
TabAPI 1.1.1 1.1.1 |
1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6
|
fabric
|
Download |
|
TabAPI 1.1.0 1.1.0 |
1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6
|
fabric
|
Download |
|
TabAPI 1.0.0 1.0.0 |
1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6
|
fabric
|
Download |