MixinStatList
基本信息
| 属性 | 值 |
|---|---|
| Mixin 目标 | net.minecraft.stats.StatList |
| Phase | EARLY |
| 角色 | StatList.<clinit> 中方块数数组长度 4096 → 32767 |
@ModifyConstant
@ModifyConstant(method = "<clinit>", constant = @Constant(intValue = 4096), require = 1)
private static int neid$increaseBlockSize(int original) {
return Constants.MAX_BLOCK_ID; // 32767
}
作用
StatList 在 <clinit> 中按 Block.blocksList.length(vanilla 是 4096,NEID 用方块 ID 上限 32767)分配方块统计项数组,让 ID > 4095 的方块也能生成对应的"挖掘次数"统计。
相关条目
- MixinBlockFire - 同样改 4096 数组长度
- Constants -
MAX_BLOCK_ID = 32767