1.20.1-forge-HPSlib-1.3.0
Curse Maven Snippet
What's new
HPSlib 1.3.0
- Added cross-version 3D world VFX rendering utilities (
org.hp.hpslib.render.vfx.HpsVfxRenderTypesandorg.hp.hpslib.render.vfx.HpsVfxGeometry) with zero third-party dependencies:- Unified
HpsVfxRenderTypesprovidingadditiveGlow(texture),legacyEyes(texture)(restoring traditionalONE, ONEadditive glowmask blending on 26.x),translucentEmissive(texture[, affectsOutline]),solidAdditiveGlow(), andsolidTranslucent(). - Automatically handles underlying rendering differences across versions (1.20.1/1.21.1
RenderType.CompositeState, 26.1.2RenderPipeline, 26.2 Reverse-Z depth testing, and 26.3 RenderPearl pipelines) and centrally registers shared VFX pipelines on the client. - Pure-vertex
HpsVfxGeometryprimitives 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), plusargb,premultiplyArgb, andmixRgbhelpers.
- Unified
- 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).
- Supports both impulse trauma (
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.2RenderPipeline、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