Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
TabAPI

TabAPI

API to add tabs to inventory screens

579
5
Library
Management
Utility
AboutGalleryChangelogVersions

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.

Developer Tutorial
  • Create a tab class by extending InventoryTab
    • MutableText tooltip: The tooltip when hovered
    • @Nullable Identifier icon: The icon for the tab (If null you can specify an item using getItemStack or custom rendering)
    • int preferedPos: Preferred index of the tab
    • boolean customRendering: If specified you have to override customRender in the tab class
    • Class... screenClasses: All the classes that this tab is able to handle (Most cases only need 1)
  • Register said tab with TabAPI.registerInventoryTab or TabAPI.registerSideInventoryTab in your mods init

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Compatibility

Minecraft: Java Edition

1.20.x

Platforms

Fabric

Supported environments

Client-side

Links

Report issues View source Join Discord server

Creators

Sygikal
Sygikal Member

Details

Licensed ARR
Published 2 months ago
Updated 3 weeks ago

Modrinth is open source.

main@fafd47f

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.