MonitoringMinecraft MonitoringMinecraft

Big Items API

Мод FabricQuilt

A really simple library that allows developers to make items take up more inventory slots.

5 скачиваний 0 подписчиков
Оцените первым

A simple to use library mod that allows mod developers to make their items take up more inventory space... for whatever reason you want to make people's lives harder

For players

Does nothing if installed not as a dependency or by itself!

For mod developers

Getting started:

  • Import the .jar into your project root folder (or any folder branching from root)
  • In your dependencies block in build.gradle add this line:
modImplementation(files("path/big-items-a1.0.jar"))

Usage:

  • In an item class, implement silly.homak.bigitems.interfaces.IBigItem Class of a big item

IBigItem:

  • To set the item's scale override the getScale() array, has to return an array of 2 integers, this is the item's scale in slots on the X and Y axis.

    How you scale an item

  • Big items have a rendered background that displays their actual scale, it's color is based on the average color of the item's texture (disregarding empty pixels). To set the background color explicitly override getColor(), has to return an integer color value.

    An item with a custom colored background

  • The interface contains a boolean isScaled() that returns if the item is big or not, returns false in scenarios like being in the hotbar or a crafting block, has to be called on the client side.

Misc:

TextureUtils:

  • Contains a bunch of helper methods for working with integer color values:
    • darkenColor: Decreases an int color's brightness, accepts an integer color and a double factor, which has to be a decimal between 0 and 1, 1 being no effect and 0 being fully black.
    • fadeColor: Decreases an int color's alpha, same arguments as the previous.
    • darkenColor: Decreases an int color's saturation, same arguments as the previous.
    • getAverageColor: Returns the mathematical average color of all pixels in an item's texture, disregards alpha.
Смотри также

Похожие подборки моды — по версиям Майнкрафта, загрузчикам и жанрам.

Сервера Майнкрафт

Играть интереснее на сервере — выбирай в рейтинге серверов Майнкрафт и заходи прямо сейчас.

SkyBars
SkyBars Java + BE
0 онлайн
1.8 — 26.2 версия
🎮 ВЫЖИВАНИЕ ⚔️ АНАРХИЯ 🚗 ГТА РП 🎤 ГОЛОСОВОЙ ЧАТ 🎁 БЕСПЛАТНЫЙ ДОНАТ 🌟 СМП 💻 ПК+ТЕЛЕФОН
SeasonEra
5 онлайн
26.1.2 версия
Выживание • Экономика • Кланы • Приваты • Донат
MigosMc
MigosMc Java + BE
0 онлайн
1.8 — 26.2 версия
🌿 MigosMc.net | Гриферский сервер с войс-чатом | Награды за онлайн ⭐ ВЫЖИВАНИЕ⭐ ОДИНБЛОК⭐ МИНИ-ИГРЫ
PLIRGAME - ДЕВУШКИ ВОЙС ЧАТ
29 онлайн
1.21.10 — 26.1.1 версия
❤️ Выживание! ❤️ Войс Чат ❤️ Девушки ❤️ /free
MineLauncher
Лаунчер Майнкрафт без лицензии — все версии
Бесплатный лаунчер для ПК и Андроид — все версии 26.2, 1.21.11, 26.1.2, 1.21.8. Fabric, NeoForge, Forge, шейдеры, моды и скины в один клик.
Без лицензии Fabric, NeoForge, Forge Моды, шейдеры, скины Все версии Майнкрафта ПК и Андроид Для слабых ПК Сервера в лаунчере
Скачать бесплатно
Windows и Андроид · Бесплатно · Без лицензии
Наш чат