快速随机(fastrandom) Mixin

基本信息

属性 值
位置 jss.bugtorch.mixins.early/minecraft/fastrandom/
阶段 EARLY
类数 7
场景 用 xoshiro256** 替换热点路径上的 java.util.Random。共 7 个已注册 + 2 个未注册。

成员

类 作用 / 配置项
MixinEntity replaceRandomInEntity
MixinItem replaceRandomInItem
MixinWorld replaceRandomInWorld
MixinMinecraftServer replaceRandomInMinecraftServer
MixinRenderItem replaceRandomInRenderItem(客户端)
MixinEffectRenderer replaceRandomInEffectRenderer(客户端)
MixinWorldClient replaceRandomInWorldClient(客户端,且排除 Angelica / NotFine)

实现要点

  • 全部在 Mixins 中用 addCommonMixins / addClientMixins 登记, 每条都以一个 BugTorchConfig 字段为 setApplyIf 条件。
  • 「排除」类条目(Angelica / NotFine / OptiFine / Hodgepodge / lwjgl3ify)用 addExcludedMod 表达,见 TargetedMod。

相关条目