mirror of
https://github.com/Motschen/Blur.git
synced 2025-12-16 11:45:09 +01:00
26 lines
796 B
Java
26 lines
796 B
Java
package com.tterrag.blur.mixin;
|
|
|
|
import com.tterrag.blur.Blur;
|
|
import net.minecraft.client.gui.screen.Screen;
|
|
import org.spongepowered.asm.mixin.Mixin;
|
|
import org.spongepowered.asm.mixin.injection.Constant;
|
|
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
|
|
|
@Mixin(Screen.class)
|
|
public class MixinScreen {
|
|
|
|
@ModifyConstant(
|
|
method = "renderBackground(I)V",
|
|
constant = @Constant(intValue = -1072689136))
|
|
public int getFirstBackgroundColor(int color) {
|
|
return Blur.instance.getBackgroundColor(false);
|
|
}
|
|
|
|
@ModifyConstant(
|
|
method = "renderBackground(I)V",
|
|
constant = @Constant(intValue = -804253680))
|
|
public int getSecondBackgroundColor(int color) {
|
|
return Blur.instance.getBackgroundColor(true);
|
|
}
|
|
}
|