blob: 8cfaebfb203c25781e686cc693b1b65c7ee9e438 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package at.hannibal2.skyhanni.mixins.transformers;
import at.hannibal2.skyhanni.mixins.hooks.MixinPatcherFontRendererHookHook;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Pseudo;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
@Pseudo
@Mixin(targets = "club.sk1er.patcher.hooks.FontRendererHook")
public class MixinPatcherFontRendererHook {
@Inject(method = "renderStringAtPos(Ljava/lang/String;Z)Z", at = @At("HEAD"), cancellable = true)
public void overridePatcherFontRenderer(String string, boolean shadow, CallbackInfoReturnable<Boolean> cir) {
MixinPatcherFontRendererHookHook.overridePatcherFontRenderer(string, shadow, cir);
}
}
|