TabAPI 图标

TabAPI

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.2.5
本资源为搬运资源,原资源地址: https://modrinth.com/mod/tabapi
资源信息

Minecraft 版本: 1.20 1.20.1 1.20.2 1.20.3 1.20.4 1.20.5 1.20.6

平台: fabric

标签: library management utility

资源介绍

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 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
📥 下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Half-Heart Hardcore

价格:0 墨喵币
下载量:0

查看详情
Brick Hopper

价格:0 墨喵币
下载量:0

查看详情
Animated Dragon totem

价格:0 墨喵币
下载量:0

查看详情
Koreanify

价格:0 墨喵币
下载量:0

查看详情