在原版“选项 → 音乐与音效”界面中,新增独立的音频滑块,位于原版滑块(主音量、音乐、唱片机/音符盒、天气、方块、敌对生物、友好生物、玩家、环境音/背景音、语音)旁边。每个额外滑块仅控制分配给它的声音,不会影响主音量、玩家或其他任何原版类别。
两个独立的问题,两种不同的机制:
哪些控制器存在以及它们的顺序——这是配置问题:通过 controllers.json 和 orders.json 进行设置,任何人都可以编辑这些文件(整合包、资源包或最终用户),无需修改代码。
某个控制器实际影响哪些声音——这是代码层面的问题,由其所属模组负责。该设置仅通过 OneMoreAudioControllerApi Java API 进行配置,绝不使用 JSON:只有发布声音的模组才真正知道其归属于哪个控制器。
所有更改均无需重启游戏即可生效:每次打开“音乐与音效”界面时(包括从模组菜单的“配置”按钮或通过 Catalogue 等模组打开),都会重新加载这两个 JSON 文件。
使用方法及 API 信息请参见 GitHub
Adds independent audio sliders to the vanilla Options → Music & Sounds screen, next to the vanilla ones (Master, Music, Jukebox/Noteblocks, Weather, Blocks, Hostile Creatures, Friendly Creatures, Players, Ambient/Environment, Voice/Speech). Each extra slider controls only the sounds assigned to it, without touching Master, Players, or any other vanilla category.
Two separate concerns, two separate mechanisms:
Which controllers exist, and in what order - this is configuration: controllers.json and orders.json, editable by anyone (a modpack, a resource pack, an end user), no code needed.
Which sounds a controller actually affects - this is a code concern, owned by whichever mod's sounds they are. It's set exclusively through the OneMoreAudioControllerApi Java API, never through JSON: only the mod that ships a sound really knows which controller it belongs under.
Everything applies without restarting the game: both JSON files are reloaded every time you open the Music & Sounds screen (including when opened from the Mods menu "Config" button or from mods like Catalogue).
How to use and API information on GitHub
评论 0
登录后参与评分
还没有评论,来抢沙发吧