Mixin Blacklist 允许通过配置文件禁用其他模组的 Mixin。此功能主要用于整合包中,当某个模组的 Mixin 引发问题且必须将其禁用时;而该模组的许可证禁止分发修改后的 JAR 文件,或者你仅希望避免在 mrpack 中嵌入 JAR 文件。
如果使用 Mixin Blacklist,某些模组的功能可能无法正常工作。请勿向原版模组作者报告此类问题,此类情况由整合包作者负责。
配置
首次运行时,将在 config/mixinblacklist.json 处生成一个配置文件。
"common":同时在客户端和服务端禁用的 Mixin
"mixinClassNames":要禁用的完全限定 Mixin 类名列表,例如 archives.tater.dyedvoid.mixin.ItemEntityMixin
"targetClassNames":要为其禁用所有 Mixin 的完全限定目标类名列表,例如 net.minecraft.item.GlassBottleItem。
"client":仅在客户端禁用的 Mixin
"mixinClassNames":要禁用的完全限定 Mixin 类名列表,例如 archives.tater.dyedvoid.client.mixin.ItemRendererMixin
"targetClassNames":要为其禁用所有 Mixin 的完全限定目标类名列表,例如 net.minecraft.item.ItemRenderer。
目标类名必须与当前使用的映射(Mappings)匹配。在非开发环境中,(Neo)Forge 使用 Mojmap,Fabric 使用 Intermediary。你可以使用 Linkie 在不同映射之间进行转换。通常情况下,你不需要使用目标类名。
示例配置
{
"client": {
"mixinClassNames": [
"archives.tater.dyedvoid.client.mixin.ItemRendererMixin"
],
"targetClassNames": []
},
"common": {
"mixinClassNames": [
"archives.tater.eatbottle.mixin.ItemsMixin",
"archives.tater.dyedvoid.mixin.ItemEntityMixin"
],
"targetClassNames": [
"net.minecraft.item.GlassBottleItem"
]
}
}
支持
只要你的 Java 版本为 17+,并且使用了 Sinytra connector,该模组 应该 能在任何版本上运行,即使当前未标记为受支持。如果在某些环境中无法正常工作,请提交 Issue。
Mixin Blacklist allows disablling other mods' mixins through a config file. This is intended to be used in modpacks when a mod's mixin is causing issues and must be disabled but the mod license prohibits distributing a modified jar or you just want to avoid embedding a jar in the mrpack.
If Mixin Blacklist is used, certain mod behaviors may not work. Please do not report such issues to the original mod authors, the modpack author is responsible for this.
Configuration
On first run a config file will be created at config/mixinblacklist.json
"common": Mixins to disable on both client and server
"mixinClassNames": A list of fully qualified mixin class names to disable, e.g. archives.tater.dyedvoid.mixin.ItemEntityMixin
"targetClassNames": A list of fully qualified mixin target class names to disable all mixins for, e.g. net.minecraft.item.GlassBottleItem.
"client": Mixins to disable on the client only
"mixinClassNames": A list of fully qualified mixin class names to disable, e.g. archives.tater.dyedvoid.mixin.ItemRendererMixin
"targetClassNames": A list of fully qualified mixin target class names to disable all mixins for, e.g. net.minecraft.item.ItemRenderer.
Target class names must match the current mappings used. Outside of a dev environment, (Neo)Forge uses Mojmap and Fabric uses Intermediary. You can use Linkie to convert between mappings. In general, you shouldn't need to use Target Class Names in most cases.
Example Config
{
"client": {
"mixinClassNames": [
"archives.tater.dyedvoid.client.mixin.ItemRendererMixin"
],
"targetClassNames": []
},
"common": {
"mixinClassNames": [
"archives.tater.eatbottle.mixin.ItemsMixin",
"archives.tater.dyedvoid.mixin.ItemEntityMixin"
],
"targetClassNames": [
"net.minecraft.item.GlassBottleItem"
]
}
}
Support
The mod should work on any version as long as you are using Java 17+ as well as on Sinytra connector, even if not currently marked as supported. Please open issues if it does not work in some environments.
评论 0
登录后参与评分
还没有评论,来抢沙发吧