Injects code into the target method.
Parameters, in order:
- All target method parameters
CallbackInfo
(forvoid
return type on target) orCallbackInfoReturnable<R>
Return type: void
Example mixin:
@Inject(method = "target()V", at = @At(value = "INVOKE", target = "Lnet/example/Dummy;dummy()V"))
private void mixin(CallbackInfo ci) {
injectedCode();
}
Method modification:
public void target() {
+ injectedCode();
Dummy.getInstance().dummy();
}