TabAPI

API to add tabs to inventory screens

Редакция NLZONE · 1 мин чтения · 1 просмотр
TabAPI
Скачать TabAPI1.20 – 1.20.6 · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

API to add tabs to inventory screens

  • Тип: мод
  • Загрузчик: fabric
  • Версии Minecraft: 1.20 – 1.20.6
  • Скачиваний на Modrinth: 27 456

Подробно

An API to add inventory tabs. Natively for 1.20.1 but should work on every version.

Made for SkillZ and based on GloboxZ'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/tabapitabs.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

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также