
TabAPI
API to add tabs to inventory screens
- Загрузки
- 5K
- Подписчики
- 10
- Обновлён
- 29 августа 2025 г.
- Лицензия
- All-Rights-Reserved
Опубликован 3 марта 2025 г.
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
Центр версий
10 версийЧенджлог
1.2.5Релиз1.20.4, 1.20.5, 1.20.6 · 29 августа 2025 г.
- Config will now actually save all registered tabs as IDs are no longer null
- IDs are derived from Text keys rather than the translated text (Which was broken)
1.2.4Релиз1.20.4, 1.20.5, 1.20.6 · 26 августа 2025 г.
- Tabs registered with LibZ will now show properly, but you will still need the LibZ mod installed
1.2.3Релиз1.20.4, 1.20.5, 1.20.6 · 23 июня 2025 г.
- Fixed FileNotFoundException and made the mod work
1.2.2Релиз1.20.4, 1.20.5, 1.20.6 · 19 мая 2025 г.
- Made disabling tabs work for more than 1
- Fixed tab display if the first is disabled
1.2.1Релиз1.20.4, 1.20.5, 1.20.6 · 19 мая 2025 г.
- Fix TestTab
- Allow not specifying a tab ID and it will default to null
1.2.0Релиз1.20.4, 1.20.5, 1.20.6 · 19 мая 2025 г.
- Added tab IDs
- Added disabling tabs (using json file and the tab ID)
1.1.2Релиз1.20.4, 1.20.5, 1.20.6 · 12 апреля 2025 г.
- Fixed crash with FerriteCore
1.1.1Релиз1.20.4, 1.20.5, 1.20.6 · 6 апреля 2025 г.
- Hopefully fixed edge-case crash
Комментарии
Загружаем…