Big Items API
A really simple library that allows developers to make items take up more inventory slots.
截图
介绍
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.2.3.jar"))
Usage:
- In an item class, implement silly.homak.bigitems.interfaces.IBigItem

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.

- 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.

- 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.
常见问题
Big Items API 支持哪些 Minecraft 版本?
Big Items API 支持 Minecraft Java 版 1.21.1,可用的加载器:Fabric / Quilt。下载时注意选择和你游戏版本一致的文件。
Big Items API 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
Homak 的其他作品
查看全部 →
Better Lightmap
Makes the lighting more dim and cozy by adding color variation between light levels. Now configurable!
Soulmade
Soul-themed weapons and utility items
Lumenium
A simple library adding utilities related to items, effects, rendering, etc.
Crops & Plants
A mod adding more flora to the game making it feel more alive!
评论
登录后评论和评分