HPSlib

Shared library mod for HP's Minecraft mods, providing reusable UI widgets, adaptive layout utilities, and cross-version JEI/EMI compatibility layers.
Back to Files

1.20.1-forge-HPSlib-1.3.0

File namehpslib-1.20.1-forge-1.3.0.jar
Uploader
hp12138hp12138
Uploaded
Dec 5, 2026
Downloads
51
Size
145.8 KB
Mod Loaders
Forge
File ID
10060020
Type
R
Release
Supported game versions
  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:hpslib-1852767:10060020")

Learn more about Curse Maven

What's new

HPSlib 1.3.0

  • Added cross-version 3D world VFX rendering utilities (org.hp.hpslib.render.vfx.HpsVfxRenderTypes and org.hp.hpslib.render.vfx.HpsVfxGeometry) with zero third-party dependencies:
    • Unified HpsVfxRenderTypes providing additiveGlow(texture), legacyEyes(texture) (restoring traditional ONE, ONE additive glowmask blending on 26.x), translucentEmissive(texture[, affectsOutline]), solidAdditiveGlow(), and solidTranslucent().
    • Automatically handles underlying rendering differences across versions (1.20.1/1.21.1 RenderType.CompositeState, 26.1.2 RenderPipeline, 26.2 Reverse-Z depth testing, and 26.3 RenderPearl pipelines) and centrally registers shared VFX pipelines on the client.
    • Pure-vertex HpsVfxGeometry primitives for both textured full-bright meshes (texturedQuad, texturedGradientQuad, texturedGroundQuad, texturedRing, texturedCylinderWall, texturedBeamTube, texturedCrossRibbon, texturedBillboard) and untextured solid-color meshes (solidQuad, solidGradientQuad, solidFlatRing, solidDashedRing, solidDisc, solidCylinderWall, solidBeamTube, solidCrossRibbon, solidAxisRing, solidSphereShell), plus argb, premultiplyArgb, and mixRgb helpers.
  • Added unified client camera shake engine (org.hp.hpslib.camera.HpsCameraShake):
    • Supports both impulse trauma (addTrauma, shakeAt) and timed multi-source shake (shake, shakeAt) with linear distance falloff, square-root energy blending, hard angle caps, frame-rate-independent smooth waveforms, pause freezing, and automatic reset on level change or disconnect.
    • Lazily generates hot-reloading global config (config/hpslib/camera.toml, auto-reloads within ~0.5s) with master toggle (enabled), global multiplier (intensity), and per-axis max angle caps (max_yaw_degrees, max_pitch_degrees, max_roll_degrees).

HPSlib 1.3.0

  • 新增零第三方依赖的跨版本 3D 世界特效渲染与几何原语工具(org.hp.hpslib.render.vfx.HpsVfxRenderTypes 与 org.hp.hpslib.render.vfx.HpsVfxGeometry):
    • HpsVfxRenderTypes 统一提供 additiveGlow(texture)(带贴图双面加法发光)、legacyEyes(texture)(在 26.x 还原传统 ONE, ONE 黑底发光遮罩混合语义)、translucentEmissive(texture[, affectsOutline])(双面全亮半透明)、solidAdditiveGlow() 与 solidTranslucent()(无贴图纯色发光/半透明)。
    • 自动屏蔽 1.20.1/1.21.1 CompositeState、26.1.2 RenderPipeline、26.2 Reverse-Z 深度测试与 26.3 RenderPearl 管线差异,并在 26.x 客户端自动完成公共 VFX 管线注册。
    • HpsVfxGeometry 提供不绑定具体贴图图集的纯顶点绘制原语,涵盖带贴图全亮系列(双面/渐变四边形、贴地方片、圆环、竖直光墙、任意轴光束管、交叉光带、面向相机公告板)与无贴图纯色系列(渐变圆环、断续旋转阵纹环、光盘、竖直光墙、任意轴圆管、交叉光带、垂直轴圆环、球壳)及 argb、premultiplyArgb、mixRgb 颜色工具。
  • 新增全局统一客户端镜头震动引擎(org.hp.hpslib.camera.HpsCameraShake):
    • 同时支持瞬时冲击(addTrauma、shakeAt)与多源持续震动(shake、shakeAt),内置线性距离衰减、多模组平方根能量融合、最大角度封顶、帧率无关连续复合波、暂停菜单冻结及切世界/登出自动复位。
    • 首次触发震动时按需生成可热重载全局配置文件 config/hpslib/camera.toml(修改后约 0.5 秒自动生效),提供总开关(enabled)、全局强度倍率(intensity)以及偏航/俯仰/翻滚最大角度上限(可将 max_roll_degrees 设为 0.0 单独关闭易晕眩的画面倾斜)。

This mod has no additional files