BackhandConfigClient

纯客户端配置:空副手渲染与槽位偏移

基本信息

属性 值
路径 xonin.backhand.utils.BackhandConfigClient
注解 @Config(modid = Backhand.MODID, category = "client")
Sync 无 —— 类注释明确「only affect the client and have no change on the server」

配置项

字段 类型 默认值 取值范围 说明
RenderEmptyOffhandAtRest boolean false — 静止时是否渲染空副手
RenderOffhandHotbarSlotWhenEmpty boolean false — 副手为空时是否仍渲染副手快捷栏槽
offhandHotbarSlotXOffset int 0 @RangeInt(min = -2000, max = 2000) 快捷栏副手槽水平位移
offhandHotbarSlotYOffset int 0 @RangeInt(min = 0, max = 1000) 快捷栏副手槽垂直位移(下限为 0,不能上移)
offhandInventorySlotXOffset int 0 @RangeInt(min = -100, max = 100) 物品栏副手槽水平位移,正值向右
offhandInventorySlotYOffset int 0 见源码 @RangeInt 物品栏副手槽垂直位移,正值向下

[!NOTE] 偏移量默认值 全部 4 个偏移量默认均为 0(@Config.DefaultInt(0)), 范围限制由 @Config.RangeInt 给出,与 BackhandConfig 的布尔开关相互独立。