Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_Menuz9Z9.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
Big Items API - 墨喵 Minecraft 资源
Big Items API 图标

Big Items API

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 a1.2.3
本资源为搬运资源,原资源地址: https://modrinth.com/mod/big-items-api
资源信息

Minecraft 版本: 1.21.1

平台: fabric

标签: cursed library storage

资源介绍

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

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
bogie's Periwinkle

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

查看详情
True Simply Survival

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

查看详情
EclipseGMPlugin

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

查看详情
To Adventure

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

查看详情