blob: b7099c268aabd5196066260b7c5a46030bd2f4ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package dulkirmod.mixins;
import dulkirmod.config.DulkirConfig;
import net.minecraft.client.renderer.EntityRenderer;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.Constant;
import org.spongepowered.asm.mixin.injection.ModifyConstant;
@Mixin(EntityRenderer.class)
public class MixinEntityRenderer {
@ModifyConstant(method = "hurtCameraEffect", constant = @Constant(floatValue = 14.0f))
private float hurtCameraEffect(float constant) {
return constant * DulkirConfig.INSTANCE.getHurtCamIntensity();
}
}
|