本模组需要
HammerLib。
警告:此模组本身不会影响你的游戏体验,但当其他模组调用它时它可以播放音乐。除非有其他模组要求使用,否则单独使用它没有任何意义。
此模组允许在不冻结游戏的情况下播放音乐,并支持通过以下几种默认方式播放 Ogg 格式文件中的音乐:
- 从资源位置(例如:我们使用 testmod:music/beach,它会播放 /assets/testmod/sounds/music/beach.ogg 文件)
- 从 URL(例如:我们使用 .ogg 文件的任意直接链接,然后播放它)。注意:当从 URL 播放声音时,它们会被缓存在 .minecraft/musiclayer/music/ 文件夹中,文件名由传入 URL 的 MD5 值生成。另外请注意,首次下载音乐时可能会稍后播放,因为它是直接从 URL 流式播放的;而下次则会从文件系统加载(即时播放)。(此外还会启动一个线程来检查远程文件和本地文件的 MD5 是否匹配,这在主机上的文件发生更改时使用)
- 可定制!这意味着你可以使用任何输入流来播放你想要的声音!
注意:此模组会将另一个库提取到 /asm/MusicLayer/SoundLib.jar!这是正常现象,且 MusicLayer 正常运行所必需。
以上就是该模组的全部内容,无需补充,感谢阅读。
权限说明:
- 你可以在你的整合包中使用此模组。
- 未经我许可,禁止将此模组重新发布到其他网站,且必须提供 CurseForge/Modrinth 的下载链接以及我的许可(
Zeitheron Discord 账号)
- 禁止将此模组(或 DragonForge 团队的其他任何模组)包含在你自己的模组中。不过,允许构建插件/扩展,但建议事先友好地私信告知。
注意:
- 唯一支持的 Minecraft 版本是该模组存在的最新版本。请勿询问降级!

想讨论些什么?需要 API 方面的帮助?
加入 Discord 服务器,并在 Twitter 上关注 Zeitheron!
如果你想支持我的工作,可以通过 Patreon 成为赞助者。 
This mod requires
HammerLib.
WARNING: This mod by itself doesn't affect your gameplay, but can play music when other mods are using it. There is no single point in using it unless it's required by another mod.
This mod allows to play music without game freezing and it allows to play music from Ogg files in several default ways:
- From resource location (ex: We use testmod:music/beach and it plays /assets/testmod/sounds/music/beach.ogg file)
- From URL (ex: We use any direct URL to .ogg file and it plays it). Note: while playing sounds from URL they get cached in .minecraft/musiclayer/music/ folder with the file name of MD5 of the passed URL. Also note that the first time the music gets downloaded it may play a little bit later as it plays the music directly from the URL, but next time will get from the file system (instantly). (Also launching a thread to check if the MD5 of remote and local files match, used when the file on a host gets changed)
- Customizable! This means that you can use any Input Stream to play your desired sound!
Note: This mod extracts another library to /asm/MusicLayer/SoundLib.jar! This is normal and required for the MusicLayer to function.
That is all for the mod, nothing to add, thank you for reading this.
Permissions:
- You can use this mod in your modpack.
- You are not allowed to repost this mod to other sites without providing a CurseForge/Modrinth download link and my permission (
Zeitheron on Discord)
- You are not allowed to include this (or any other mods of the DragonForge team) in your own mod. Building add-ons, however, is allowed, but a friendly PM would be good.
Note:
- The only supported version of Minecraft is the latest one that this mod exists for. DO NOT ASK TO DOWNGRADE!

Want to discuss anything? Need help with APIs?
Join the discord server and follow Zeitheron on Twitter!
If you would like to support my work, you can become a patron via Patreon. 
评论 0
登录后参与评分
还没有评论,来抢沙发吧