
Resource Bar API
A small java API mod that allows mods to easily set up a complete resource bar HUD element.
Автор: TheRedBrain43,1 тыс.8обновлён 15 апр. 2026 г.
Библиотеки
Описание
Resource Bar API
A small java API mod that allows mods to easily set up a complete resource bar HUD element.
This can be for example a mana bar.
This API does not do all the work. All this API does is provide a method that draws the HUD element according to the given parameters.
It does not decide under which conditions the element should be rendered. That is the job of the mod using this API. This decision was made to ensure maximum flexibility when using this API.
Последние версии
Все версии →release
4.0.0
4.0.015 апр. 2026 г.2 тыс.Minecraft: 26.1, 26.1.1, 26.1.2fabric
Что нового
# 4.0.0
- updated to Minecraft 26.1.x
- removed deprecated "icon resource bar" API method
release
3.2.0
3.2.017 февр. 2026 г.947Minecraft: 1.21.11fabric
Что нового
# 3.2.0
## Changes
- reworked icon resource bars to support multiple icon types per resource bar
- the old API method was deprecated
release
3.1.0
3.1.025 янв. 2026 г.157Minecraft: 1.21.11fabric
Что нового
# 3.1.0
- updated to 1.21.11
- migrated to Mojang Mappings
release
3.0.0
3.0.025 окт. 2025 г.341Minecraft: 1.21.10fabric
Что нового
# 3.0.0
- updated to 1.21.10
release
2.7.0
2.7.030 июл. 2025 г.5,8 тыс.Minecraft: 1.21.1fabric
Что нового
# 2.7.0
- added icon resource bars, similar to the vanilla resource bars. This first iteration does not support multiple icon types per bar yet (eg absorption hearts). This will (hopefully) be implemented at a later stage.
- several API methods were renamed and split up
release
1.6.2
1.6.28 дек. 2024 г.28,8 тыс.Minecraft: 1.20.1fabric
Что нового
# 1.6.2
- fixed some other wrong calculations
release
2.6.2
2.6.28 дек. 2024 г.3,2 тыс.Minecraft: 1.21.1fabric
Что нового
# 2.6.2
- fixed some other wrong calculations
release
1.6.1
1.6.18 дек. 2024 г.85Minecraft: 1.20.1fabric
Что нового
# 1.6.1
- fixed some wrong calculations
release
2.6.1
2.6.18 дек. 2024 г.65Minecraft: 1.21.1fabric
Что нового
# 2.6.1
- fixed some wrong calculations
release
2.6.0
2.6.08 дек. 2024 г.76Minecraft: 1.21.1fabric
Что нового
# 2.6.0
This is a pretty fundamental rewrite. The initial idea of splitting a bar into three textures per "layer" to allow for easy change of the bar length, came with the cost of massive FPS drops.
With this rewrite the bar size is no longer changeable with a simple config option. Each 'layer' consists of only 1 texture (which can have configurable dimensions).
In addition, the texture can be dynamically replaced by another texture (with configurable dimensions) depending on the max value.
The result of the rewrite is a much, MUCH more optimised API.
- removed 'is_centered' option, as it was redundant and unnecessarily complicated the calculations.
- 'fill_direction' no longer chooses between a horizontal and a vertical 'texture set', it only determines the direction from which the bar is filled. This means that changing between horizontal and vertical resource bars also requires a texture change.
- added the option to display an icon (with configurable texture id and dimensions). This can be toggled independently of the bar and the number.
- added a server config option to enable debug logs